Disable the use of multiple rows in FlowLayout?
-
31-05-2021 - |
Pergunta
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?
Solução
Don't use FlowLayout. Instead have you tried BoxLayout, organized as BoxLayout.LINE_AXIS.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow