执行 Swing 应用程序的更好方法
有没有更好的方法来开发 Java Swing 应用程序?
SWIXML? JavaFX? 这里的开发人员还有什么喜欢和推荐的吗?
Is there a better way to develop Java Swing applications?
SWIXML? JavaFX? Anything else that developers out here have liked and recommend?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
另一个“更好的方法”是通过使用更好的布局管理器:
MigLayout:
一个极其灵活且易于使用的布局管理器,适用于 Swing 和 SWT。
它可以通过简单易懂的字符串和/或基于 API 的编码来完成表布局、表单布局和几乎所有 Swing 布局管理器可以完成的工作。
它的目标是用于手动编码的布局,就像 Matisse/Group Layout 用于 IDE 一样。
(来源:miglayout.com)
Another "better way" is through the use of a better Layout Manager:
MigLayout:
an extremely flexible and easy to use Layout Manager that works for both Swing and SWT.
It can do what Table Layout, Form Layout and almost all Swing Layout Managers can with simple to understand String and/or API based coding.
It is targeted to be for manually coded layouts what Matisse/Group Layout is for IDEs.
(source: miglayout.com)
JavaDesktop 是此类问题的非常完整的信息来源。
最近,我发现(但我自己没有直接使用它)Flamingo swing 组件套件令人印象深刻。
特别是因为它允许集成最新的 UI 设计:功能区
(它不是从某种意义上说,这是一种新的开发方式,它仍然是一个经典的 Swing 组件,而不是(例如)基于 XML 的 swing 规范,但我会看看其他 javadestop 项目,以获取您问题的其他说明)
JavaDesktop is a very complete source of information for this kind of question.
Lately, I found (but not used it directly myself) the Flamingo swing component suite impressive.
Especially because it allow to integrate one latest recent UI design: ribbons
(It is not a new way to develop in the sense it is still a classic Swing component, not - for instance - an XML-based swing specification, but I would look at other projects of javadestop for other illustrations to your question)
我喜欢使用 Groovy 构建 UI(HTML、SWT 或 Swing)。 使用 Groovy 构建器 就简单多了。
I like to build the UI (HTML, SWT or Swing) with Groovy. It's just so much more simple with Groovy builders.
如果您喜欢使用 Groovy 而不是 Java 进行编程,请查看 Griffon:http://griffon.codehaus.org/
If you like programming in Groovy instead of Java, check out Griffon: http://griffon.codehaus.org/
Swing 应用程序框架是一个轻量级框架,可以简化中小型应用程序的创建和维护Java 桌面应用程序。 该框架由一个 Java 类库组成,该类库支持以下内容的构造:
这是一篇关于它的文章。
它已与 Netbeans 6.0 及更高版本集成。
The Swing Application Framework is a light framework that simplifies the creation and maintaining of small- to medium-sized Java desktop applications. The framework consists of a Java class library that supports constructs for things such as the following:
Here's an article about it.
It's been integrated with Netbeans 6.0 and later.