Class ClickableLabel

All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, SwingConstants

public class ClickableLabel extends JLabel implements MouseListener
This is a specialized label that acts as a replacement for a button. It underlines its text when hovered like a hyperlink and so indicates that it is clickable. Note that the label always uses HTML to underline its text internally and so does not need an additional HTML tag to show HTML content. This can be used in circumstances where the button's function is less important or a fallback and the label is used to call less attention to it than a button would. Another use is when a text info label should have the button functionality only as a secondary function. The label calls a callback method when it is clicked.
See Also: