有哪些替代Java Swing GUI的选项?

时间:2022-03-15 11:58:23

We have a desktop client application developed in Swing. This application interacts with backend server using Servlet.

我们有一个在Swing中开发的桌面客户端应用程序。此应用程序使用Servlet与后端服务器交互。

The new requirement is to make a web based client. I have read about JavaFX, Flex, ExtJS, etc.

新要求是制作基于Web的客户端。我读过有关JavaFX,Flex,ExtJS等的内容。

I would like to know which solution is best fit to replace a swing application? Does anyone have any experience of doing the same?

我想知道哪种解决方案最适合更换摆动应用?有没有人有这样做的经验?


(EDIT based on comments)

(根据评论编辑)

The application is heavy weight in terms of widgets. Ofcourse we will redesign a bit when making a web based client.

该应用程序在小部件方面很重。当然,我们会在制作基于Web的客户端时重新设计一下。

3 个解决方案

#1


You could consider using the Google Web Toolkit, GWT, to make a web based client. Making a user interface in GWT is somewhat similar to doing it in Java Swing, but the final result is a dynamic web client.

您可以考虑使用Google Web Toolkit GWT制作基于Web的客户端。在GWT中创建用户界面有点类似于在Java Swing中执行它,但最终结果是动态Web客户端。

#2


You know Swing can run in a web page! There are many other options including PHP, ASP, Ajax etc etc. How "heavy" is the Swing app i.e. are there lots of widgets? This is a very open ended question!

你知道Swing可以在网页上运行!还有许多其他选项,包括PHP,ASP,Ajax等等.Swing应用程序有多“重”,即有很多小部件?这是一个非常开放的问题!

#3


Since you already know Swing and you're supposed to make a web based client/interface, you should consider Apache Wicket which structurally has lots of similarities with Swing (one of its original devs was in a similar situation as you are now).

既然你已经知道了Swing并且你应该建立一个基于Web的客户端/接口,你应该考虑Apache Wicket,它在结构上与Swing有很多相似之处(其中一个原始开发人员与你现在的情况类似)。

If you need to have heavyweight functionality which isn't easily done with Ajax and other such web technologies, I'd suggest a combination of Flash/Flex for the UI mainly because there's a lot of people out there who know how to use both of those technologies.

如果您需要使用Ajax和其他此类Web技术无法轻松完成的重量级功能,我建议将UI的Flash / Flex组合使用,主要是因为有很多人知道如何同时使用这两种技术。那些技术。

Quick edit: Also see this answer to another question, it may help you understand the real issue at hand a bit better.

快速编辑:另见另一个问题的答案,它可以帮助您更好地理解手头的真实问题。

#1


You could consider using the Google Web Toolkit, GWT, to make a web based client. Making a user interface in GWT is somewhat similar to doing it in Java Swing, but the final result is a dynamic web client.

您可以考虑使用Google Web Toolkit GWT制作基于Web的客户端。在GWT中创建用户界面有点类似于在Java Swing中执行它,但最终结果是动态Web客户端。

#2


You know Swing can run in a web page! There are many other options including PHP, ASP, Ajax etc etc. How "heavy" is the Swing app i.e. are there lots of widgets? This is a very open ended question!

你知道Swing可以在网页上运行!还有许多其他选项,包括PHP,ASP,Ajax等等.Swing应用程序有多“重”,即有很多小部件?这是一个非常开放的问题!

#3


Since you already know Swing and you're supposed to make a web based client/interface, you should consider Apache Wicket which structurally has lots of similarities with Swing (one of its original devs was in a similar situation as you are now).

既然你已经知道了Swing并且你应该建立一个基于Web的客户端/接口,你应该考虑Apache Wicket,它在结构上与Swing有很多相似之处(其中一个原始开发人员与你现在的情况类似)。

If you need to have heavyweight functionality which isn't easily done with Ajax and other such web technologies, I'd suggest a combination of Flash/Flex for the UI mainly because there's a lot of people out there who know how to use both of those technologies.

如果您需要使用Ajax和其他此类Web技术无法轻松完成的重量级功能,我建议将UI的Flash / Flex组合使用,主要是因为有很多人知道如何同时使用这两种技术。那些技术。

Quick edit: Also see this answer to another question, it may help you understand the real issue at hand a bit better.

快速编辑:另见另一个问题的答案,它可以帮助您更好地理解手头的真实问题。