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?

Was it helpful?

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
scroll top