title: How to set only the preferred width of Panel with flow layout?
body: <p>I have a panel with flow layout, and it can contain a variable number of items - from 1 to 2000. I want to put it inside a scroll pane, scrollable in vertical direction, and with fixed width. The problem is, when I set preferred size of panel to something like (800,600), some items are missing, and there is no scroll. If I set up preferred size of scroll pane, then all elements in flow pane are put on one very long line.</p>
  
  <p>Setting maximum size on any element seems to do nothing at all - layout managers ignore it.</p>
  
  <p>How can I fix this?</p>