vaadin的Java秋千流
你们中有些人可能知道,在Java Swing Framework中,有一个称为Flowlayout
的布局。为了使事情变得有点,我开始使用vaadin而不是摇摆。一切正常,除了我没有找到经典摇摆Flowlayout
的简单替代方案。
我想将组件彼此放置,直到填充一行的水平空间,并且布局开始将组件放在新行中。我尝试使用水平布局,但是它没有创建新行,而是使其组件较小。
有什么想法吗?
As some of you might know there is a Layout that is called FlowLayout
in the Java Swing Framework. To spice things up a little I started using Vaadin instead of Swing. Everything works fine except that I haven't found an easy alternative to the classic Swing FlowLayout
.
I want to place Components next to each other until the horizontal space of a row is filled and the layout starts placing components in a new row. I tried using the Horizontal Layout, but instead of creating a new row, it makes its components smaller.
Any Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
a
和
You can use
a
FlexLayout
with
wrapping.
The default direction (column) and a wrap will give you the behaviour, that items
added to the layout will use the space they need (make sure to
"un-specifiy" where needed) and once the horizontal screen space is used up, break into the next line.