#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Location
    Lisbon
    Posts
    45
    Rep Power
    14

    Arrow Windows Clipboard to Java Applet Swing Text area


    I have an application that consists on a HTML embeded java applet with a text-area.

    The main usage of this application consists in text transfer between windows text editors and the Java-applet text area.

    I've tried to use windows clipboard to copy-paste data but
    it's seems there is no possible data transfer between them.


    It's hard to believe that nobody remembered this for Java. Does anyone know what do i need to configure, to program on the applet or if there is a specific version of the JRE that i need to solve this, ore something else?

    Best Regards,

    Irina/Lisbon/Portugal
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    Didnīt i answer this yesterday somewhere? Ah, here: http://forums.devshed.com/t50268/s.html how many times and where did you post this also?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Location
    Lisbon
    Posts
    45
    Rep Power
    14

    reply number


    Hello H.

    Yes, you did, I've posted this 2 times, you answered both.
    So,you're saying that this is possible to solve by installing ActiveX MS ?

    Regards,
    Irina
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    cross-posting is very bad habit. and i am not following two threads for the same problem.
    sorry, no help from me until you deleted one of these posts...
  8. #5
  9. No Profile Picture
    Clueless llama
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2001
    Location
    Lincoln, NE. USA
    Posts
    2,353
    Rep Power
    117
    With Java < 1.4 this is indeed true. You need to make your applet a signed applet to access the clipboard for security reasons.

    However, I believe with > 1.4 the clipboard is accessible from an applet. The reason I say this is that our intranet uses some applets and I have been using jre 1.3. We recently tried 1.4.1_01 out because 1.4.1 had some problems and I wanted to see if they were rectified in this latest release (they werent). In the brief time I had a 1.4 applet out there I seem to remember thinking that I could at least copy out of the applet into the clipboard. I do not know if it can implicitly read from the clipboard though.

    Hope this helps.
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    1
    Rep Power
    0

    I've got the same problem


    2 Irina

    as I understand there are 2 solutions:
    1) to use JavaScript, which will post data from clipboard to your applet
    2) to change java-security settings on client computer

    I have a couple of days to figure out which one of these 2 ways is easier, and will be very gratefull for any suggestions (I believe you've already solved this issue) ;-)

    Regards
    Alex

IMN logo majestic logo threadwatch logo seochat tools logo