Java 有没有其他swing的替代品?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24553177/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there any alternative of swing?
提问by mystdeim
Is there any alternative of swing? I need a high performance GUI toolkit to create desktop application on linux (Ubuntu). I've been creating swing application for 2 years, therefore I want use java.
有没有其他swing的替代品?我需要一个高性能 GUI 工具包来在 linux (Ubuntu) 上创建桌面应用程序。我已经创建了 2 年的 Swing 应用程序,因此我想使用 java。
采纳答案by Cyclopes
回答by peter.petrov
You can probably use SWT as an alternative.
您可能可以使用 SWT 作为替代方案。
回答by Andres
Take a look at JavaFX it's now part of the JRE/JDK for Java 8.
看看 JavaFX,它现在是 Java 8 的 JRE/JDK 的一部分。
http://docs.oracle.com/javase/8/javase-clienttechnologies.htm
http://docs.oracle.com/javase/8/javase-clienttechnologies.htm
回答by Michael Berry
Yes, there's a number of other UI toolkits available - AWT, SWT, JavaFX, QT to name a few.
是的,还有许多其他 UI 工具包可用 - AWT、SWT、JavaFX、QT 等等。
I'd primarily recommend JavaFX as the new UI toolkit (it's now part of Java8 and is still under heavy development) or perhaps SWT if you want the "native" feel (since it uses native OS components.) QT does this as well of course, but it requires bindings and is generally more of a faff - so its use is relatively rare in Java land.
我主要推荐 JavaFX 作为新的 UI 工具包(它现在是 Java8 的一部分并且仍在大量开发中)或者如果你想要“原生”感觉(因为它使用原生操作系统组件)或者 SWT。QT 也这样做当然,但它需要绑定,而且通常更像是一种噱头——所以它在 Java 领域的使用相对较少。
On the other sided of things, I'd recommend staying away from AWT (it's the old, original Java GUI framework that lacks many common components in other UI toolkits, and is not really supported any more.)
另一方面,我建议远离 AWT(它是旧的、原始的 Java GUI 框架,缺少其他 UI 工具包中的许多通用组件,并且不再受到真正支持。)