Results 1 to 7 of 7

Thread: Quick question

  1. #1
    Qsc
    Qsc is offline Member
    Join Date
    Mar 2011
    Posts
    24
    Rep Power
    0

    Default Quick question

    I have only been doing java for a little while so I think this should go here. What I have is form with some images with emoticons listed similar to here.



    I've added a listener to each, and when I click on them it copies the url within image tags to my clipboard.

    Java Code:
    [IMG]url[/IMG]
    What I can't figure out is how to make it or if it is possible to paste it into the text area within my browser instead of just onto my clipboard.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,897
    Rep Power
    25

    Default

    You can launch your browser with the URL by passing it to the browser as an argument.
    Also Look at the Desktop class.

  3. #3
    Qsc
    Qsc is offline Member
    Join Date
    Mar 2011
    Posts
    24
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    You can launch your browser with the URL by passing it to the browser as an argument.
    Also Look at the Desktop class.
    Ahh, I don't wish open the url in my browser, I want to have it pasted into where I am typing. So say I press the icon in my gui, it would appear in here.



    Where I would then continue typing.

    I'll go take a look at now. :).

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,897
    Rep Power
    25

    Default

    You could put it in the clipboard and then be able to paste it wherever.

  5. #5
    Qsc
    Qsc is offline Member
    Join Date
    Mar 2011
    Posts
    24
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    You could put it in the clipboard and then be able to paste it wherever.
    I have that already coded, I just would like it to be slightly faster/ add another function that is harder to do. I don't mind spending the time needed to figure this out on those 2-3 extra seconds saved pressing ctl+v.

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,897
    Rep Power
    25

    Default

    The Robot class can "type" on the screen.

  7. #7
    Qsc
    Qsc is offline Member
    Join Date
    Mar 2011
    Posts
    24
    Rep Power
    0

Similar Threads

  1. Really Quick question
    By Ryan10 in forum New To Java
    Replies: 63
    Last Post: 03-02-2011, 03:11 AM
  2. Quick question
    By Thumper in forum New To Java
    Replies: 10
    Last Post: 11-07-2010, 11:06 PM
  3. Really quick question
    By shadycharacter in forum New To Java
    Replies: 2
    Last Post: 04-22-2010, 11:06 PM
  4. Quick question
    By sAntA199 in forum New To Java
    Replies: 2
    Last Post: 12-09-2009, 04:01 AM
  5. One last quick question
    By jigglywiggly in forum New To Java
    Replies: 7
    Last Post: 01-26-2009, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •