You want to be careful if you do that... the parent class doesn't necessarily have to implement ActionListener. Also, you have a totally unrelated class that may want to listen to that class's action...
Type: Posts; User: helloworld922
You want to be careful if you do that... the parent class doesn't necessarily have to implement ActionListener. Also, you have a totally unrelated class that may want to listen to that class's action...
Personally, I don't see anything wrong with that style-wise.
What you mean by having 20 or so listeners? I'm not sure what Java's behavior is if you add a single object multiple times to the same object that's sending out ActionEvents, but I know that's...