How to deploy swing application on web browser?

browser, java, jframe, swing, webswing

Solution

I have just used below steps:

- Download Webswing from http://webswing.org/

- Upload your jar file

- Add your application to `webswing.config` and use Java 8+

- Start Webswing server and the added application swing window will appear in your browser at http://localhost:8080/ by default

Problem

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?

Original source