-2

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.

Matt
  • 72,564
  • 26
  • 147
  • 178
amol
  • 1
  • 2
  • 2

1 Answers1

4

use HTML

 String str = "<a href=\"www.samteksystems.com\" >samteksystems</a>";
 jLabel.setText(str);
Vladimir Ivanov
  • 42,109
  • 17
  • 76
  • 102
jmj
  • 232,312
  • 42
  • 391
  • 431