Hyperlink in swing
In the code
How can I add a hyperlink in
JPanel statusLabel = new JPanel();
JLabel status = new JLabel("Your message has been sent successfully. Please send it to another contact.");
Also, I need to have a listener for that hyperlink so that I can call other constructors/methods from there.
Please send it to another contact.
I'm not sure what you mean by hyperlink in that context.
A hyperlink is used in HTML to refer to another page to be fetched by the browser if the user clicks it. Are there other usages?
Could explain somemore what your want to do?