Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy swing application on web browser?

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?

like image 676
wanda Avatar asked Feb 20 '13 11:02

wanda


People also ask

Can Java Swing be used in web applications?

Webswing is a web server that allows you to run any Java Swing application inside your web browser, using only pure HTML5.


1 Answers

I have just used below steps:

  1. Download Webswing from http://webswing.org/
  2. Upload your jar file
  3. Add your application to webswing.config and use Java 8+
  4. Start Webswing server and the added application swing window will appear in your browser at http://localhost:8080/ by default
like image 138
Oleksii Kyslytsyn Avatar answered Nov 14 '22 23:11

Oleksii Kyslytsyn