距离趋向于一个,但我希望距离趋于另一个

发布于 2024-07-29 19:06:10 字数 123 浏览 7 评论 0原文

当我在屏幕上定位文本区域时(使用netbeans的gui-builder),第一个和第二个之间的距离往往是1(18像素),第二个和第三个之间的距离也往往是1( 18 像素),但我希望两个距离都趋向于另一个(25 像素)。 怎么做?

When I'm positioning textareas on the screen (with the gui-builder of netbeans), the distance between the first and the second tends to be one (18 pixels), the distance between the second and the third tends to be one too (18 pixels too), but I want both distances to tend to be another (25 pixels). How to do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

柏拉图鍀咏恒 2024-08-05 19:06:10

了解如何使用 LayoutManager,而不是依赖 IDE 来为您完成布局。

阅读 Swing 教程中有关使用布局管理器的部分

Learn how to use LayoutManagers and don't rely on an IDE to do the layout for you.

Read the section from the Swing tutorial on Using Layout Managers

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