I have a bottomPanel, and I want to add two panels side by side into this panel. They are bottomLeft and bottomRight panel. So I'm thinking if I set the minimum size of outter panel larger than the width when they are side by side, when I make the window smaller, the two panels should maintain side by side. But bottomRight always goes under bottomLeft. Below is the code and I use flowLayout for bottomPanel.
bottomPanel.add(bottomPanelRight);
bottomPanel.add(bottomPanelLeft);
bottomPanel.setMinimumSize(new Dimension(600, 600));