jeudi 26 mars 2015

Image changing while pressed

I have 2 images for a JComponent, one of an unpressed button, and one of a pressed button. When I click the button, I want the image to change for the pressed one, but only while I am clicking. Which means whenever I release the mouse button, the image goes back to the unepressed button.


How can I do this?


Aucun commentaire:

Enregistrer un commentaire