title: BorderLayout doesn't honor maximumsize
body: <p>I have a problem using <code>BorderLayout</code>, but first of all, here is my GUI setup:</p>
  
  <p><a href="https://i.stack.imgur.com/l7MpH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l7MpH.jpg" alt="enter image description here"></a></p>
  
  <p>As you can see, I have 3 different components inside my <code>JFrame</code>. Adding the <code>JMenu</code> and <code>JList</code> works fine. But my <code>JPanel</code> should have a <strong>fixed size</strong> so I want to prevent my <code>BorderLayout</code> from stretching the panel. I tried everything, <code>setPreferredSize() setMinimumSize() setMaximumSize() setSize()</code> but again the layout stretches my panel to fit to the frame. (The panel is added to the frame using <code>BorderLayout.CENTER</code>). </p>
  
  <p>Is there any way to prevent this or do you have other suggestions to manage the problem?</p>