title: Layout for displaying panels dynamically with scroll bar
body: <p>In java, I have been trying to create a panel that can accept other panels with a scroll bar.</p>
  
  <p>I tried using gridlayout, and this works fine, except for the fact that if I only add a few panels, it grows those panels to fit the size of the parent panel.</p>
  
  <p>I tried using flowlayout, but this makes the panels flow horizontally as there is a scroll bar.</p>
  
  <p>How do I make it so I can add panels to the parent panel starting at the top and make them always the same size(or their preferred size).</p>
  
  <p>Also, when I add panels to the parent panel after an event, they do not appear until after I move or resize the form. How do I make it repaint?     calling repaint() on it did not work.</p>