You may see this as a duplicate question but please here me out.
I have a JLabel with an image. This JLabel has a mouse listener binded to some function. Is there any way to make the JLabel disappear (or technically, transparent) in order for the mouse listener function to be preserved?
I know I can set a transparent image as an icon to the JLabel, but I'm wondering if there's some kind of "toggle" function out there.