JSplitPane in JLayeredPane
问题 I want the right content of an JSplitPane to fill the entire available space and the left content (panel) to be on top of the other panel. I was thinking about using a JLayeredPane to solve that problem but I couldn't get it to work. My class currently looks like this: public class LayeredPane extends JLayeredPane { private Component topComponent; private Component mainComponent; public LayeredPane() { setLayout(new GridBagLayout()); } public Component setTopComponent(Component c) { this