Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

swing flow layout break element

Tags:

java

swing

I have panel which is using flow layout.

How can I make break in flow layout? Like <br/> in html. Some special break element or another trick to indicate that specified element and all subsequent have to go to the next line.

like image 837
michael nesterenko Avatar asked Jun 04 '11 17:06

michael nesterenko


1 Answers

In a case like this, I'd put two containers with flowlayout one on top of each other inside a BoxLayout. Nesting layouts is fairly inexpensive.

like image 159
Paul Tomblin Avatar answered Sep 22 '22 02:09

Paul Tomblin