-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
  • 74,352
  • 26
  • 153
  • 180
amol
  • 1
  • 2
  • 2

1 Answers1

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