Hide JPanel by clicking outside of it

75 Views Asked by At

I have a JLayeredPane with a Checkbox on the Default_Layer. By checking it, a Panel shows up on the Palette_Layer. All of that works fine.

I just want to know how to hide the Panel again by clicking outside of it, without unchecking the Checkbox.

0

There are 0 best solutions below