Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Embedding a hyperlink within a JFrame

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Embedding a hyperlink within a JFrame

    I've googled through this, but every example try's to show how to read the hyperlink's url inside a swing component which is pretty stupid, I'm after an example/explanation of how I can embed a hyperlink in say a JText field so when the user click's on it, it will open that link up in their default browser, I have no idea how to go about this, help much appreicated.


  2. #2
    Junior Member
    Join Date
    Jun 2010
    Posts
    9
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: Embedding a hyperlink within a JFrame

    Im not all that great at these things. But i do know that JLabel supports HTML, and it would not be that hard to present it that way.
    also, check this out... Bare Bones Browser Launch for Java • Use Default Browser to Open a Web Page from a Swing Application

    Again, I'm not that knowledgeable, so there may very well be a way to do it within a JText.

Similar Threads

  1. JFrame Edit
    By n00b123 in forum AWT / Java Swing
    Replies: 1
    Last Post: May 19th, 2010, 08:23 PM
  2. JPanel in JFrame
    By maele in forum AWT / Java Swing
    Replies: 2
    Last Post: March 8th, 2010, 04:12 AM
  3. Embedding images in a matrix.
    By Aims_ in forum Java Theory & Questions
    Replies: 1
    Last Post: September 11th, 2009, 02:37 PM
  4. JFrame help
    By Uden in forum AWT / Java Swing
    Replies: 0
    Last Post: August 14th, 2009, 01:37 PM
  5. [SOLVED] Java code to embedding xml tags at start and end of file
    By John in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: April 30th, 2009, 03:02 PM