This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Swing Applets on Public Site? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Swing Applets on Public Site?" Watch "Swing Applets on Public Site?" New topic
Author

Swing Applets on Public Site?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 381
What happens if I put a swing applet on a public site and someone visits the site and does not have a JVM installed?
If they have a JVM installed, do they necessarily have the swing components the applet would need?
Are there any reasons to use flash and javascript instead of java applets? Flash, of course, requires a download but I believe the installation of the flash client is completely automated.
I don't believe the installation of the JVM is completely automated. Is that true?
Thanks,
Siegfried
Timothy Chen Allen
Ranch Hand

Joined: Mar 16, 2003
Posts: 161
Originally posted by Siegfried Heintze:
What happens if I put a swing applet on a public site and someone visits the site and does not have a JVM installed?
If they have a JVM installed, do they necessarily have the swing components the applet would need?
Are there any reasons to use flash and javascript instead of java applets? Flash, of course, requires a download but I believe the installation of the flash client is completely automated.
I don't believe the installation of the JVM is completely automated. Is that true?
Thanks,
Siegfried

1. If it's MS Internet Explorer, they get a message saying they must download the JVM. Then they are taken to a site that explains why MS no longer produces a JVM. Nice, eh?
2. They can very likely not have the Swing components they need. If you are writing Applets for a public site, you might consider using AWT instead of Swing. If you control the clients' machines (like in an intranet), then you can get away with requiring the latest JVM.
3. Asking if you should use Flash on a Java site is like asking a room full of barbers if you should become a long-haired hippie and never cut your hair again. That said, it depends on what you want. I'm not sure, but I think a lot more people have the Flash plugin because it is easier to install. My wife did it, for instance, and she'd never be able to install the JVM.
For straight presentations, Flash does some nice stuff. But there is a lot of garbage out there (see my company's website http://www.oportuna.es for a particularly bad example), so Flash has a pretty bad name. I think it does what it does just fine. I just enjoy working with Java a lot more.
Good luck!


Timothy Chen Allen
Learn Spanish in Washington, DC
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Swing Applets on Public Site?
 
Similar Threads
Java Plugin in Browsers
Difference Between Applet and Plugin
Difference Between Applet and Plugin
Applets & Swing
Applet/Browser Configuration Problem