Does JTextArea.copy() work?

Discussion in 'Java' started by Ahmed Moustafa, Sep 21, 2003.

  1. JTextArea.copy() does not put anything in the clipboard. Does it need
    extra handling?

    Thanks in advance,
     
    Ahmed Moustafa, Sep 21, 2003
    #1
    1. Advertising

  2. Ahmed Moustafa

    Bungee Guest

    Ahmed Moustafa <> wrote in message news:<dhkbb.1083$>...
    > JTextArea.copy() does not put anything in the clipboard. Does it need
    > extra handling?
    >
    > Thanks in advance,



    This should do:

    JTextArea.selectAll();
    JTextArea.copy();

    Bungee
     
    Bungee, Sep 22, 2003
    #2
    1. Advertising

  3. >>JTextArea.copy() does not put anything in the clipboard. Does it need
    >>extra handling?
    >>
    >>Thanks in advance,

    >
    >
    >
    > This should do:
    >
    > JTextArea.selectAll();
    > JTextArea.copy();


    I forgot to mention it was a Java Web Start application.
    I got the solution, I had to use the JNLP clipboard service.
     
    Ahmed Moustafa, Sep 22, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Inertia_sublimation
    Replies:
    10
    Views:
    744
    Andrew Thompson
    Jan 1, 2004
  2. Ahmed Moustafa
    Replies:
    1
    Views:
    644
    Andrew Thompson
    Jul 10, 2004
  3. Markus
    Replies:
    5
    Views:
    558
    Roedy Green
    Nov 29, 2005
  4. Alex
    Replies:
    2
    Views:
    1,233
  5. Replies:
    26
    Views:
    2,119
    Roland Pibinger
    Sep 1, 2006
Loading...

Share This Page