Whats the best practice for implementing action listeners?
I've seen it done basically 2 different ways in
Java books.
1. Have the class where the components are located implement Actionlistener
and then having the line:
someComponent.addActionListener(this);
or
2. creating an anonymous inner class like:
and then having the line:
someComponent.addActionListener(act);
Is there a perforance difference?
Does it matter?
-Tad