I have an invisible JButton on top of an image. The problem is... when the button is pressed it turns to gray.
I would like the button to stay invisible when clicked. Ideally, only the border would change.
Note that I do need an invisible button (to long to explain why) so a solution that proposes to build the JButton with
JButton( Icon icon) would not be acceptable for me.
Presently the only thing I'm doing is to set setOpaque(false);
Thank you in advance for you help and advices.