此图像的最佳布局?

发布于 2025-01-25 21:11:47 字数 125 浏览 3 评论 0原文

我不知道哪个是该图像的最佳布局,我认为也许网格布局(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岛歌少女 2025-02-01 21:11:47

该列的各节货币交换GUI似乎具有相等的高度,这将建议一个列gridlayout。对于不等的高度部分,也许是gridbaglayoutboxlayout,如注释中所建议。

每个部分本身看起来都是默认的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 a GridBagLayout or a BoxLayout 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文