When defining the behaviour of a simple click on a JButton, which is the right way to do it? And, what\'s the difference?
JButton but = new JButton(); but.ad
You should be able to press that button using keyboard also. So, if you add just the mouse listener you will not get the 'press' event if using keyboard.
I would go for the action listener, it's more clear.