Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

swing application as a web application

 
tuni kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how i can make the swing application as a web application

can any one help me???
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by tuni kumar:
how i can make the swing application as a web application

can any one help me???


1) Extend JApplet instead of JFrame
2) Replace JFrame constructor with init()
3) Ensure that you are not trying to access any system resources, as you will get a security violation. If you do want to access system resources, read some stuff regarding signing jars.
4) Create a web page and embedd your applet in it.
5) Deploy the web page under some webserver.

Of course you have many other options. But applet conversion means least amount of code changes for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic