当前的java桌面蓝图/最先进的?

发布于 2024-10-20 03:30:48 字数 199 浏览 7 评论 0原文

我已经远离 Java 编程(除了一些 Android 开发人员)和桌面应用程序,但现在我想开发一个 Java 桌面应用程序作为个人项目。所以我想知道,这种应用程序目前的蓝图是什么?还是Swing和JDBC?
话虽如此,是否还会为一个简单的项目推荐一套技术?打个比方,我不想为了做一个简单的网页而读一本 800 页的 J2EE 书,如果你明白我的意思的话。

谢谢

I've been away from Java programming (except some Android dev) and desktop apps but now I want to develop a Java desktop app as a personal project. So I wonder, what's the current blueprint for this kind of app? Is still Swing and JDBC?
Having said that, would also recommend that set of technologies for a simple project? As an analogy, I don't want to read a 800 pages book on J2EE just to do a simple web page, if you know what I mean.

Thanks

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

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

发布评论

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

评论(1

东走西顾 2024-10-27 03:30:48

做一些原型设计并选择:

  • Swing:大多数资源、最常用的、很多第 3 方免费的东西(SwingX 等)、出色的外观和感觉、真正的跨平台、良好的 IDE 支持。 Swing 将在下一个 JDK 版本中得到改进,因此它仍然在游戏中发挥着重要作用。 NetBeans IDE 和 IntelliJ IDEA 是用 Swing 编写的。
  • SWT:使用实现它的操作系统的设施的替代方案。 SWT 社区规模较小,并且不像 Swing 那样提供那么多工具。跨平台有点棘手,您需要在要发布应用程序的所有操作系统上进行实际编译。 Eclipse IDE 是用 SWT 编写的。
  • QT:拥有大量用户的跨平台解决方案。它在 C++ 用户中非常流行。另一方面,我从未见过像 Swing 或 SWT 那样强大的 Java+QT 工具。我不认为 QT 是“真正的 Java”解决方案,但您可能有不同的想法。
  • Java FX:自 2007 年以来,Sun 试图说服我们使用这种声明式方法来构建 RIA。我看过很多教程,但我从来不喜欢 Java FX,而且我并不孤单。 JavaFX 试图成为唯一的 UI 解决方案,它不会取代 Swing。

可能还有更多,但这就是我尝试过的。从这些中,我喜欢 Swing。现在已经相当成熟了。这里有无数的教程。是的,Swing 的某些功能是相当痛苦的,但总的来说,我认为它仍然是 Java 的最佳桌面选择。

如果您喜欢声明式 UI,另一个有趣的事情是 YAML。查看这本 pdf 书。

至于第二部分,JDBC 仍然很流行,但是你可能会想到一些 ORM 框架(你可以轻松地在 google 上搜索一些或在 stackoverflow 上查找,最流行的一个是 Hibernate)。

Do a little prototyping and choose:

  • Swing: Most resources, most used, lot of 3rd party free stuff (SwingX etc.), kick ass look and feels, really cross platform, nice IDE support. Swing is going to be improved in next JDK release, so it's still pretty much in game. NetBeans IDE and IntelliJ IDEA are written in Swing.
  • SWT: Alternative which uses facilities of operating systems on which it is implemented. SWT community is smaller and it doesn't provide that many tools as Swing does. It's a little more tricky to do cross platform, you need to make actual comiplation on all OS you are going to ship your app on. Eclipse IDE is written in SWT.
  • QT: Cross platform solution with lots of users. It's pretty popular amongst C++ users. On the other hand, I've never seen powerful tools for Java+QT as for Swing or SWT. I don't consider QT as "true Java" solution, but you might have different idea.
  • Java FX : Since 2007, Sun tries to persuade us to use this declarative approach for building RIA. I've seen lots of tutorials but I never liked Java FX and I am not alone at all. JavaFX tries to be only UI solution, it does NOT replace Swing.

There is probably much more, but this is what I tried. From those, I liked Swing. It's pretty mature now. There are bazillion of tutorials over here. Yes, some things are pretty painful with Swing, but overally I think it's still best desktop choice for Java.

Another intersting thing, if you're into declarative UI, is YAML. Check this pdf book.

As for second part, JDBC is still pretty popular, but you might think of some ORM framework (you can easily google some or looke here on stackoverflow, most popular one is Hibernate).

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