I have a question.
I need to write a program to display a button with an image on it using Swing. the Image on the button has to change when the button is clicked.

I read somewhere about the image on button But is not sure how to change the image when the buttonclick event is envoked (do i need to put mouse click event or something?) help