which you use depends on how many buttons you have and how reusable you want your code to be

Personally I prefer a distinct method per control and a distinct ActionListener per control.
Makes it a lot easier to share them between controls that do the same thing (say you have a menu option, a context menu entry, a hotkey, and a toolbar option that all do the same thing).
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004