Disable the use of multiple rows in FlowLayout?
-
31-05-2021 - |
Question
I can't find how to disable the automatic creation of rows in Flowlayout
when re-sizing the container. It's mentioned in the docs that:
If the horizontal space in the container is too small to put all the components in one row, the FlowLayout class uses multiple rows.
How can I disable this feature?
Solution
Don't use FlowLayout. Instead have you tried BoxLayout, organized as BoxLayout.LINE_AXIS.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow