Java Swing JLayeredPane not showing up
问题 I seem to be having some major issues with JLayeredPane . I have a BorderLayout() pane, and I'd like for the West-side element to contain a few JLayeredPane's on top of each other, so I can switch between them to show the right information. The west pane should be 200 pixels wide and should be as long as the total window is. In my sample code I have added two layers to the JLayeredPanel , but they don't show up. They should be in the west pane. Here is my code: import java.awt.BorderLayout;