Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Swing Applets on Public Site?

 
Ranch Hand
Posts: 420
  • Mark post as helpful
  • send pies
  • 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
  • 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 guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic