摆动流程布局中断元素 [英] swing flow layout break element

查看:100
本文介绍了摆动流程布局中断元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用流程布局的面板。

I have panel which is using flow layout.

如何在流程布局中中断?喜欢html中的< br /> 。一些特殊的break元素或另一个技巧来指示指定的元素和所有后续的必须转到下一行。

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.

推荐答案

像这样的情况,我在BoxLayout中放置了两个容器,其中一个堆叠在一起。嵌套布局相当便宜。

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.

这篇关于摆动流程布局中断元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆