I'm working on a project in university for Java and am using GUI. To make a transparent icon button, I added an image to my button and set button.setContentAreaFilled(false);
which works perfectly.
I want the button to be restored to normal when hovered over, and transparent when it's not. Is there any way for me to undo setting ContentAreaFilled to false?
Setting it to true results in what I can only describe as a black outline around the button, why is that? What is its value by default?