Any class can implement ActionListener, as long as they implement the actionPerformed method. The following (ugly) way is too often used:
However, the ActionListener per, well, action is a lot better.
My example code will work without any other classes. However, what do you prefer - 10 if-statements, or 10 classes that are each specialized to do only one single task?
Please use real words when posting to the forums. Abbreviations such as "coz" in place of "because" only serve to make your posts more difficult to read and less likely to generate useful responses.