Results 1 to 2 of 2
  1. #1
    aneesahamedaa is offline Member
    Join Date
    Jul 2008
    Rep Power

    Default Hyperlink in swing

    In the code
    Java Code:
    JPanel statusLabel = new JPanel();
    JLabel status = new JLabel("Your message has been sent successfully. Please send it to another contact.");
    How can I add a hyperlink in
    Java Code:
    Please send it to another contact.
    Also, I need to have a listener for that hyperlink so that I can call other constructors/methods from there.

    Please help.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    I'm not sure what you mean by hyperlink in that context.
    A hyperlink is used in HTML to refer to another page to be fetched by the browser if the user clicks it. Are there other usages?

    Could explain somemore what your want to do?

Similar Threads

  1. [SOLVED] Hyperlink
    By Mir in forum New To Java
    Replies: 91
    Last Post: 07-09-2008, 12:37 PM
  2. Replies: 0
    Last Post: 04-01-2008, 05:14 PM
  3. AWT or Swing
    By bugger in forum AWT / Swing
    Replies: 4
    Last Post: 11-22-2007, 10:44 AM
  4. map javax.swing.text.Element to javax.swing.text.View
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 08:02 PM
  5. Hide hyperlink address on status bar
    By simon in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-24-2007, 11:34 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