• Post Reply Bookmark Topic Watch Topic
  • New Topic

Appletviewer-HTML in Swing 1.1.8  RSS feed

 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to know that if you write Swing applet with Swing 1.1.1 and JDK 1.1.8 , can able to run applet in Browser by opening HTML page or you must need Appletviwer to run applet?
Please let me know,
Thanks in advance,
Angela
 
Ghulam Sarwar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There're two ways to do this:
1) Deploy the swing library (swing.jar) file on webserver, and specify archive="swing.jar" attribute in applet tag. Now, every time a user loads the page, this jar file would be downloaded before your applet. Note that swing.jar (or swingall.jar) is a huge file and it make take a while to download.
2) Other way is to use Java-Plugin and convert your html to use java plugin. Both java plugin and htmlconverter are available from sun site:
http://java.sun.com/products/plugin/index.html
Now, when the user will open your (converted) html page, he'll be prompted to download java plugin (if its not already installed). But if its already downloaded and installed, your swing applet will start running immediately. Note that Java Plugin is part of JRE (and hence JDK), so if JRE is already installed, Java Plugin would be already installed.
Also, note that Netscape 6.0 already includes JRE 1.3, so your swing applet will work on Netscape 6.0 without above mentioned points.
Let me know if you still have some concern.
Ghulam Sarwar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!