Hyperlink in a JLabel [duplicate]
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.
use HTML
String str = "<a href=\"www.samteksystems.com\" >samteksystems</a>";
jLabel.setText(str);
精彩评论