Capturing button click on a JButton with image

Hi

My application uses several JButtons which do not have any text on it, but instead each one has an image. On clicking of a button the ActionListener fires an event wihch invokes the actionPerformed() method. In this method, depending on the button clicked , appropriate code has to be executed. So how do i identify which is the button clicked? (Since the button does not have associated text, rather it only has an image)

Kindly Help, thanks in advance.

[476 byte] By [resh123a] at [2007-10-1 6:23:36]
# 1
Cross-post: http://forum.java.sun.com/thread.jspa?threadID=600617
Torgila at 2007-7-9 15:19:33 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...