I have a JLabel that changes its background color when the mouse enters it. The problem I have is that I want the JLabel to become transparent after the mouse exits.
JLabel is by default transparent and non-opaque, if you want to change background on mouse exit, then you have to:
setBackground() for both states, enter and exit
change to JPanel or another JComponent