我找不到如何禁用 Flowlayout
中自动创建行的功能重新调整容器大小时。文档中提到:
If the horizontal space in the container is too small to put all the components in one row, the FlowLayout class uses multiple rows.
如何禁用此功能?
最佳答案
不要使用 FlowLayout。相反,您是否尝试过以 BoxLayout.LINE_AXIS 形式组织的 BoxLayout。
关于java - 禁止在 FlowLayout 中使用多行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10162789/