java scrollpane with flowlayout

前端 未结 1 1953
孤街浪徒
孤街浪徒 2021-01-16 13:23

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

相关标签:
1条回答
  • 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.

    0 讨论(0)
提交回复
热议问题