I have a JLabel that has an email address in it. I used HTML formatting in JLabel, so it appears as a link. However, you cannot click the link. In fact, you cannot select any text in the label. Is there a property that I can set in JLabel to allow the user to at least select the text of the email message and preferably click on the email address as it would on a web page?
My code for my JLabel is essentially:
JLabel l = new JLabel("<html><a href=\"mailto:bob@bob.com\">bob@bob.com</a>");
source
share