此图像的最佳布局?
我不知道哪个是该图像的最佳布局,我认为也许网格布局(5*1)可能会有所帮助,但我无法在一个网格布局单元格中添加多个组件。
这是GUI:

I don't know which is the best layout to use for this image, I think maybe grid layout (5*1) may be helpful but I can't add multiple components in one grid layout cell.
Here's the GUI:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该列的各节货币交换GUI似乎具有相等的高度,这将建议一个列
gridlayout
。对于不等的高度部分,也许是gridbaglayout
或boxlayout
,如注释中所建议。每个部分本身看起来都是默认的
flowlayout
,其中一系列的组件中心,介于两者之间。The sections of that column the Currency Exchange GUI seem to be of equal height, which would suggest a single column
GridLayout
. For unequal height sections, perhaps aGridBagLayout
or aBoxLayout
as suggested in the comments.Each of the sections themselves looks to be a default
FlowLayout
, with a line of components centered with some padding between.