I have a JLabel in my about us form which I'd like to be a hyperlink to www.samteksystems.com, which means that whenever I click on that JLabel it should go to www.samteksystems.com. Please help me.
Asked
Active
Viewed 3,090 times
-2
-
You may wish to look over this page as well: http://www.w3schools.com/html/html_intro.asp – Wipqozn Apr 04 '11 at 12:04
1 Answers
4
use HTML
String str = "<a href=\"www.samteksystems.com\" >samteksystems</a>";
jLabel.setText(str);
Vladimir Ivanov
- 42,730
- 18
- 77
- 103
jmj
- 237,923
- 42
- 401
- 438