Rob
SCJP 1.4
Often the most important part of the news is what they didn't tell.
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.
Often the most important part of the news is what they didn't tell.
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
Just the other day, I was thinking ... about this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|