hi!
the jbutton has built-in functions for the same.
eg.
jbutton go = new JButton();
then you have methods to set the icon of the image according to the event:
eg
go.setSelectedIcon(Icon);
go.setRolloverIcon(Icon);
go.setPressedIcon(Icon);
and so on... check the
java documentation for a full list of methods...
hope this helps...
meera
