This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I Wayan Saryada wrote:Isn't it more light weight to implements the ActionListener in other separate class instead of in JFrame? Where later on it can be use by the JFrame and other classes that reuse this ActionListener.
That's generally the way to go. Who knows, though, maybe the OP is doing what he's doing for a specific reason.
There is no difference in weight between having Listeners in different sorts of classes. No design is heavyweight or lightweight. There are object‑oriented and non‑object‑oriented versions however. I have a little rule of thumb about Listeners, and where you put their classes.