Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Appletviewer-HTML in Swing 1.1.8

Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
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:
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
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic