Rob
SCJP 1.4
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
Originally posted by Tim Holloway:
You DO realize that most people's web browsers are supplied with really antique Java implementations, don't you? A JPanel is a Swing feature and both Netscape and IE come equipped (using the term carefully in IE's case) with a version of Java that predates Swing.
To make an applet using Swing work for everyone you need to ensure that they have the Java Plug-in installed. Since that's about 5MB, a lot of us write down to the AWT featureset of Java 1.0.2 to avoid annoying the user.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
p.s. All I really want to do is make it so I can insert a JPanel into the applet settings so that I can run my normal programs as an Applet instead of a Program... if someone has something simple for me to do, a template for example, that'd be great!
Rob
SCJP 1.4
Originally posted by Jeff Grant:
I tried writing in straight up AWT for those who were "java impared" with their java updates. However, people still can't run this code!
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Marilyn de Queiroz:
Like Rob said, if you're going to write for people without the plug-in, you need to compile with the -target 1.1 flag. If you're going to use the plug-in so you can use swing and more current java stuff (more current than jdk 1.1), you need to use a different html page to require the plug-in -- something more than just
applet
code=
height=
width=
/applet
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Originally posted by Marilyn de Queiroz:
https://coderanch.com/t/254541/Applets/java/Game-Tutorials-Exploring-Browser-Support
Come have lunch with me Arthur. Adventure will follow. 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
|