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

    Default Hyperlink in swing

    Hi,
    In the code
    Java Code:
    JPanel statusLabel = new JPanel();
    statusLabel.setBounds(5,105,450,50);
    JLabel status = new JLabel("Your message has been sent successfully. Please send it to another contact.");
    statusLabel.add(status);
    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.
    Regards,
    Anees

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    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, 11:37 AM
  2. Replies: 0
    Last Post: 04-01-2008, 04:14 PM
  3. AWT or Swing
    By bugger in forum AWT / Swing
    Replies: 4
    Last Post: 11-22-2007, 09: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, 07: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, 10: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
  •