JButtons not updating there mouseOver state

Hey,

i was wondering if there is a way to tell a JButton, or prefferalby every JButton on a panel, to update its state in term of mouse over, mouse down, ect…

Ofcorse :slight_smile:

How to Use Buttons, Check Boxes, and Radio Buttons

JButton

And the methods, you’re interested in are from AbstractButton (setRolloverIcon).

ive already looked through the api b4 posting this, and the JButtons tutorials is no help ethier. I think you have misunderstood me, i already have rollover, and mouse down icons set. My problem is that when changing JPanels, the buttons state stays what it was lat tie that JPanel appeared, so i am ending up with buttons that are displaying their mouse over image, when the mouse isnt over them.

So thats y i want a way of telling them that the mouse is no longer over them.