Making a JPanel transparent
843805Sep 22 2006 — edited Sep 25 2006In the application I am writing I want to allow for some popups on my interface. I am using a JLayeredPane, with two JPanels. The main JPanel, on the default layer, holds all the main components. A second JPanel, at the popup layer, will hold any components which should "pop up".
The layered pane is using a border layout, with both JPanels in the Center.
Unfortunately the bottom panel cannot be seen. It is covered by the top panel, even after I called setOpague(false) on the top panel.
Am I taking the wrong approach? Or is it just not possible to make a JPanel transparent?