高级 Java GUI 框架
我一直在使用 netbeans 进行 java gui 创建,还有其他更好的框架或 ide 来创建 Java GUI 吗?
I've been using netbeans for java gui creations, are there any other better frameworks or ides out there for creating Java GUIs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
GUI 框架不是 IDE,反之亦然!
NetBeans 是一个 IDE,而且还提供了 NetBeans RCP 框架(但您不需要使用 NetBeans IDE 来使用 NetBeans RCP)。
如果您的主要问题是设计 UI(面板、表单...),那么您有两个选择:
你需要使用 LayoutManager
有一个简单的 API(很好的例子:
DesignGridLayout 和 MigLayout)
IDE),我永远不会建议这样做
选项,因为生成的代码是
晦涩且难以维护;还,
这会强制所有用户使用相同的 UI
团队中的开发人员。
现在,如果您正在寻找构建 UI 应用程序的框架(不只是谈论表单),那么您有一些框架,但在大多数情况下,它们要么太“大”(例如,NetBeans RCP 或 Spring RCP),或者只提供 UI 框架所需的一部分功能。
您可能想从 Swing 应用程序框架(或其后代 BSAF)开始,尽管它们现在看起来都已经死了,但如果您不害怕自己修复一些错误(这并不是真的),它们仍然可以在现实应用程序中使用实际上很困难,因为代码库很小)。
A GUI Framework is not an IDE and conversely!
NetBeans is an IDE, but also provided the NetBeans RCP framework (but you don't need to use NetBeans IDE to use NetBeans RCP).
If you main problem is designing UI (panels, forms...) then you have two options:
you'll need to use a LayoutManager
that has an easy API (good examples:
DesignGridLayout and MigLayout)
an IDE), I will never advise this
option because the generated code is
obscure and unmaintainable; also,
this enforces the same UI for all
developers in the team.
Now if you are looking for framework to build a UI application (not talking just about forms), then you have a few of them, but in most cases, they are either too "big" (eg, NetBeans RCP or Spring RCP), or provide only one part of the features required for a UI framework.
You may want to start with Swing Application Framework (or its offspring BSAF) although they both seem dead by now, they still can be used in a real-life application, if you're not afraid to fix some bugs yourself (it's not really difficult actually, because the codebase is quite small).
尝试 javaFX 以获得丰富的 UI
try javaFX for rich UI
您应该尝试 Swing 提供的不同外观和感觉您的应用程序外观丰富。
或者,如果您仍然想选择另一个,请尝试以下其中一种方法来替代 swing: JavaFx 或 SWT 或 浮标
You should try different look and feels available for swing to give your app a rich look.
Or if you still want to go for another then try one of the following as an alternative to swing: JavaFx or SWT or Buoy