Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-28-2008, 02:30 PM
Member
 
Join Date: Jul 2008
Posts: 26
Rep Power: 0
aneesahamedaa is on a distinguished road
Default Hyperlink in swing
Hi,
In the code
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
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
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-28-2008, 04:41 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Hyperlink Mir New To Java 91 07-09-2008 12:37 PM
have to make the bookisbn column values as hyperlink to a page name bookinfo.jsp whi koushika New To Java 0 04-01-2008 05:14 PM
AWT or Swing bugger AWT / Swing 4 11-22-2007 10:44 AM
map javax.swing.text.Element to javax.swing.text.View elizabeth New To Java 1 07-30-2007 08:02 PM
Hide hyperlink address on status bar simon JavaServer Pages (JSP) and JSTL 2 07-24-2007 11:34 AM


All times are GMT +2. The time now is 03:14 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org