Java GUI框架 - 哪里有? [英] Java GUI Frameworks - which are out there?

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

问题描述

我主要开发Java EE,现在我处于一种需要编写一个本地Java应用程序的情况。



但tbh我有点失去了,哪些框架(Swing,SWT等)在那里?其中一种快速开发也有可能吗?也许有人可以为我提供一些链接或分享他的经验。

Swing和SWT是两个主要的候选人,是的。 JavaFX也浮现在脑海中,但我认为它尚未准备好迎接黄金时段:它没有值得一提的UI编辑工具,我知道现实生活中唯一的企业用户界面原型是一场惨败......

p>

Swing和SWT是你可能想到的两个。 Swing的基本优点是:


  • 更独立于平台

  • 在性能方面更一致
  • >
  • 更好的免费UI设计器(NetBeans)
  • 极其灵活

  • 可以在JavaFX中使用



SWT的优势在于:
$ b


  • 更简单的API

  • 在可能的情况下使用本机UI小部件(UI与更多类似于相同环境中的其他应用程序)

  • 有争议的是它比Swing ,尽管这仅仅在Windows上



这两个平台都存在相当先进的富客户端框架( NetBeans Platform Eclipse RCP ),并且如果您打算构建任何不平凡的东西,我会衷心建议您使用以下其中一种:您可以获得模块化应用程序,更新机制,上下文相关的帮助,菜单上的一致动作,热键和工具栏,窗口管理以及其他很多免费的优秀功能。



我与Swing合作,并且比SWT更喜欢它它有一个更纯粹的组件模型(SWT你不用担心释放资源,因为你使用的是原生的小部件),是真正的多平台(SWT适用于Windows,MacOS和Linux,并且甚至没有很好地优化所有3),而且它更具可定制性。

你可能不会犯SWT甚至是JavaFX的错误,但我很难找到一个很好的理由切换到SWT,并尝试JavaFX只检查艺术的状态,假设该应用程序只是一个展示应用程序。



我可以撒几个链接,但您可以轻松搜索自己,并找到比您感兴趣的结果。


I mainly developing Java EE and now I'm in a situation where I need to write a small native Java app.

But tbh I'm a little bit lost, which frameworks (Swing, SWT, etc.) are out there? Is some rapid dev also possible with one of these? Maybe someone could provide me some links or share his experiences.

解决方案

Swing and SWT are the two main candidates, yes. JavaFX also comes to mind, but I think it's not yet ready for prime time: it had no UI editing tool worth speaking of for a long time, the only enterprise UI prototype I know of in real life was a fiasco...

Swing and SWT are the two you might think about. Swing's basic advantages are:

  • more platform independent
  • more consistent in terms of performance
  • better free UI designer (NetBeans)
  • extremely flexible
  • can be used in JavaFX

SWT's advantages are:

  • simpler API
  • uses native UI widgets when it can (the UI is more similar to other apps in the same environment)
  • at some point, it was argued that it's faster than Swing, although this was on Windows only

Quite advanced rich client frameworks exist for both (NetBeans Platform and Eclipse RCP) and if you plan on building anything non-trivial, I would heartily suggest you use one of these: you get modularized apps, update mechanisms, context-sensitive help, consistent actions over menus, hotkeys and toolbars, window management and lots of other excellent features for free.

I worked with Swing and prefer it over SWT as it has a purer component model (with SWT you have to worry about freeing resources, as you're using native widgets), is truly multi-platform (SWT works on Windows, MacOS and Linux, and is not even very well optimized for all three), and it's more customizable.

You're probably not making a mistake trying SWT or even JavaFX, but I'd be hard-pressed to find a good reason to switch to SWT and would try JavaFX only to check the state of the art, assuming the app is just a showcase app.

I could sprinkle a couple of links, but you can easily search for yourself and find the results than interest you.

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

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