GridBag 布局教程

发布于 2024-11-27 02:20:55 字数 1539 浏览 5 评论 0原文

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

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

发布评论

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

评论(4

婴鹅 2024-12-04 02:20:55

可能是你没查清楚。

如果您搜索得很好,那么您怎么错过了这个: Oracle java 教程:如何使用 GridBagLayout

有关示例,请访问:Java 教程 » Swing » GridBagLayout

You might have not searched well.

If you had searched well then how did you missed this: Oracle java tutorials: How to Use GridBagLayout

For examples visit this: Java Tutorial » Swing » GridBagLayout

小草泠泠 2024-12-04 02:20:55

NetBeans GUI 编辑器为 GridBagLayout 生成的代码可能具有指导意义。在导航器中,右键单击选择 GridBagLayout,然后选择“自定义”以查看可用约束的交互式视觉指南。

输入图片此处描述

The code generated by the NetBeans GUI editor for GridBagLayout may prove instructive. In the navigator, right click to select GridBagLayout and choose Customize to see an interactive visual guide to the available constraints.

enter image description here

亣腦蒛氧 2024-12-04 02:20:55

另外,您应该尝试 Javaspring 布局。这是最近添加的。它非常灵活,值得尝试。

On a side note, you should try Javaspring layout. It was added recently. It is very flexible and is worth trying.

独行侠 2024-12-04 02:20:55

查看“Derek Banas”Java 教程。他的解释非常好而且简洁。查找教程 20-28。
https://www.youtube.com/playlist?list=PLE7E8B7F4856C9B19

官方 Java 教程如果你是专家的话还可以,但对于初学者来说就没用了。但无论如何你都不需要它们。
让我惊喜的是,没有人跳起来说“这不是一个‘推荐我教程’的网站!”

Check "Derek Banas" Java tutorials. His explanation is very good and concise. Look for tutorials 20-28.
https://www.youtube.com/playlist?list=PLE7E8B7F4856C9B19

Official Java tutorials are ok if you are an expert, but useless for a beginner. But then you don't need them anyway.
I am pleasantly surprised, nobody jumped up with "this is not a "recommend me a tutorial" site!"

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