Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Swing Applets on Public Site?

 
Ranch Hand
Posts: 422
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic