Listener « JLabel « Java Swing Q&A





1. Can I add an action listener to a JLabel?    stackoverflow.com

I want to replace a JButton by a JLabel and I want my code to perform some action when the JLabel is clicked. When I had the JButton I used action listener ...

2. Help with listener in Jlabel    coderanch.com