For some reason, I cannot this working. It should be simple really.
I\'ve having a JFrame with a BorderLayout, which contains a JPanel (SOU
BorderLayout
JPanel
A FlowLayout does NOT recalculate the preferred size of a panel. The scrollbars only appear when the preferred size of the component is greater than the size of the scroll pane.
WrapLayout may be what you are looking for.