|
-
Mar 26th, 2008, 05:25 AM
#1
Thread Starter
PowerPoster
[RESOLVED] Clickable link to get the browser in a JLable
Hi all,
I want to add a html link to a web page on a JLabel. I try something this.
Code:
String htmtString = "<html><head></head><body><a href = \"http://www.google.com/\">Google</a></body></html>";
jLabel1.setText(htmtString);
Actually it display the blue color link on the label. But I can't click and go the site. How can I do it.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|