Java GUI 库 [英] Java GUI libraries

查看:31
本文介绍了Java GUI 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经之前问过,但那是在 2008 年,情况发生了变化.我尝试寻找 Swing,但 JFC 现在已经过时了,我似乎在其他任何地方都找不到 Swing.

I understand this question has been asked before, but that was back in 2008, and things have changed. I tried looking for Swing, but the JFC is now outdated, and I can't seem to find Swing anywhere else.

我想知道最好的最新 Java GUI 库是什么.

I'd like to know what the best up-to-date java GUI libraries are.

推荐答案

查看您链接到的问题 ( 哪个 GUI 库是 Java 中最好的?),那里的答案仍然相关.

Looking at the question you link to ( Which GUI Library is the best in Java? ), the answers there are still relevant.

简短版本:

GUI 有两个重要的竞争者:SwingSWT.

There are two serious contenders for a GUI: Swing and SWT.

Swing 更加成熟(可以说是),是标准 JDK 的一部分(没有部署问题),非常灵活且文档齐全.

Swing is more mature (arguably), is part of the standard JDK (no deployment issues), very flexible and well-documented.

SWT 使跨不同操作系统的本地应用程序更容易表现(但这也意味着更多的可移植性问题).据报道,它还在某些情况下表现更好(但这在很大程度上取决于您的工作).

SWT makes it easier to behave like a native application across different OSes (but this also means significantly more portability issues). It also reportedly performs better in some scenarios (but this depends very much on what you do).

其他一些注意事项:

我现在在制作新应用程序时会认真考虑创建一个网络应用程序.在这种情况下,SWT 获得了额外的分数,因为它具有 Eclipse RAP(或多或少)) 让您只需针对不同的库重新编译即可将桌面客户端转换为 Web 客户端,因为它使用与 SWT 相同的 API.

I'd seriouly consider creating a web app when making a new app nowadays. In that case, SWT scores an extra point, because it has Eclipse RAP which (more or less) lets you convert a desktop client into a web client by just recompiling against different libraries, because it uses the same API as SWT.

此外,您可能会考虑在客户端框架之上构建,而不是从头开始编写.在这种情况下,如果您使用 Eclipse 作为框架,则必须使用 SWT.或者使用基于 Swing 的 Netbeans...

Also, you might consider building atop a client framework, instead of writing from scratch. In that case, if you use Eclipse as your framework, you'll have to use SWT. Or use Netbeans, which is based on Swing...

这篇关于Java GUI 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆