在Web浏览器中Swing应用程序

在Web浏览器中Swing应用程序

本文介绍了在Web浏览器中Swing应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我已经开发了一个很大的Swing应用程序。有几类,每同时关闭previous其中一个叫这个类创建自己的JFrame。我想这个部署到Web浏览器和理解,我需要将其转换为一个小程序。我必须在code添加为每个类创建小程序?或者是有一些其他的方式。在我目前的状况每一类的创建了一个具有一定功能的按钮,就被点击将关闭当前的JFrame和实例,从而创建另一个JFrame的一类新的JFrame。能否请你帮我,建议我如何解决我的问题。

I have a big swing application that i have developed. There are several classes that each creates its own JFrame while closing the previous one which called this class. I wish to deploy this into a web browser and understand that i need to convert it to an applet. Do i have to add in code for creating applet in each of these classes? or is there some other way. In my current situation each of the class creates a JFrame which has some buttons which on being clicked will close the current JFrame and instantiate a new class which creates another JFrame. Could you please help me and advice me on how to resolve my problem.

推荐答案

看到的的。这使您能够启动从网络上一个Swing应用程序而无需改变任何事情。

Look into Java Web Start. This enables you to launch a Swing app from the web without changing a thing.

这篇关于在Web浏览器中Swing应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 00:26