Swing、Eclipse RCP 还是该走哪条路?

发布于 2024-09-25 01:50:22 字数 431 浏览 1 评论 0原文

我正在开发主要的 Java Web 应用程序。我想开始创建一个小的 Java 桌面应用程序。它应该是一个简单的 CRUD 应用程序,带有数据库连接、2 - 3 个表单和一个智能统计页面。老实说:我对这个话题有点迷失。我花了一些时间来指导 swing,但是教程都很旧,而且大多数内容似乎非常不方便。没有任何摇摆框架或其他东西吗?

Vogella 很好地介绍了 Eclipse RCP 开发,但这一切对于我在家用的。

我正在寻找一种创建桌面应用程序的简单/轻便的方法。本主题中有哪些选项可用?如果有人可以分享一些使用 Swing 或 Eclipse RCP 的经验,以及是否值得花时间参与其中,我会很高兴。

谢谢

I'm a developing primary Java webapplications at work. I would like to start creating a little java desktop app. It should be a simple CRUD app with database connection, 2 - 3 forms and a smart stats page. To be honest: I'm kinda lost in this topic. I've took some time to guide through swing but the tutorials are all old and most of the stuff seems to be very unhandy. Aren't there any swing frameworks or somethingelse?

Vogella gives a good introduction into Eclipse RCP development but this all seems too much for my use at home.

What I'm searching is a easy/light way to create a desktop app. Which options are available in this topic? Would be glad if someone could share some experiences with Swing or Eclipse RCP and if its worth to spend time into getting in of this.

Thanks

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

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

发布评论

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

评论(5

罪歌 2024-10-02 01:50:22

对于像您这样的简单应用程序,Eclipse RCP 简直是大材小用。它是一个非常高级的框架。 SWT 是一个不错的选择。如果您有使用 Swing 或 SWT 的经验,我建议您坚持使用。您还应该查看 MiGLayout

For a simple application like yours, Eclipse RCP is just overkill. Its a very high level framework. SWT is a good option. If you have any experience with Swing or SWT, I suggest you stick to it. You should also look into MiGLayout.

不一样的天空 2024-10-02 01:50:22

您可能会考虑JavaFX。我还没有时间亲自尝试,但我听说它的易用性和功能都很好。

You might consider JavaFX. I haven't yet had time to try it myself, but I hear good things about the ease of use and capabilities.

后知后觉 2024-10-02 01:50:22

Eclipse RCP 非常简单,恕我直言,您始终可以从新项目向导中的邮件模板开始。如果您正在寻找更轻量级的东西,您可以尝试 Spring 应用程序框架。 e4 使“在快车道上”开发 RCP 变得相当容易。您可以尝试这个优秀的 Vogella 教程

Eclipse RCP is quite straightforward IMHO, you could always start with a Mail Template from the new Project Wizard. If youre looking for sth a little bit more lighweight you could try Spring Application Framework. e4 makes it considerably easier to develop RCP "on the fast lane". You could try this excellent Vogella tutorial

辞旧 2024-10-02 01:50:22

如果您不介意使用 Groovy 尝试 狮鹫

If you don't mind using Groovy try Griffon.

彼岸花ソ最美的依靠 2024-10-02 01:50:22

我正在将 Swing 数据库应用程序移植到 Netbeans RCP 平台。

Netbeans RCP 与 Eclipse RCP 类似,但它完全基于 Swing(Swing 附带 JRE/JDK,因此它更加独立于平台)。

如果您是 Swing 的初学者,我当然会推荐使用 Netbeans RCP,因为它会自动解决许多初学者的问题并强制实施良好的实践。它还具有一些强大的 GUI 元素(如大纲、选项按钮),这些元素在普通 Swing 中是不存在的。 netbeans.org 有充足的入门视频教程。

此外,通过 Netbeans RCP,您还可以获得一些可能有用的额外好处,例如用于客户端中在线帮助的模块化 JavaHelp 集成。

此外,Netbeans 可以生成易于部署的 Webstart 包或依赖于平台的安装程序来部署桌面应用程序(我推荐 Webstart,这是分发应用程序的最简单方法,只需要预先安装 Java,即使对于最笨的人来说通常也是可行的用户数)。

I am in the process of porting my Swing database application to the Netbeans RCP Platform.

The Netbeans RCP is similar to Eclipse RCP but it is fully based on Swing (Swing ships with the JRE/JDK , so it is more platform independent).

If you are a beginner to Swing, I would certainly recommend using the Netbeans RCP because it automatically solves a lot of beginner's problems and enforces good practices. It also has some powerful GUI elements (like Outline, option-button) which are not present in plain-Swing. The netbeans.org has ample video tutorials to get started.

Also, with the Netbeans RCP, you get some extra goodies which may come useful, like modular JavaHelp integration for online help in the client.

Also, Netbeans can generate easily deployable Webstart package or platform-dependent installers for deploying the desktop app (I recommend Webstart, that is the easiest way to distribute your application, only Java needs to be installed beforehand and that is usually doable even for the dumbest of users).

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