You can nest layouts. And you can set the minimum and maximum size of a component. I'd try a BorderLayout or a BoxLayout, along with setting the minimum and maximum size of the JPanel you want to...