I have a GUI with a bunch of jPanels stacked on top of each other. Which one is "on top" is controlled by a jLayeredPane. However, when hovering over buttons and forms not on top, they become visible and interact-able.
How can I make the panels "solid" i.e. so that the underlying components don't "pop up"?
I would advise you to use a CardLayout
for this task.