This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.

Jason Huntz

Greenhorn
+ Follow
since Mar 10, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jason Huntz

Currently it doesn't look like most of your code will even get called. The method public void init() will get called when you initialize the applet and
public void start() will get called when the applet starts. Your init(Graphics g) doesn't look like it will ever get called the way it is set up now.
Also, using the graphics class directly usually isn't necessary. Unless your teacher told you to do it that way specifically, you should probably have your name set in a Label and add the label to the applet in the same way you do your button. If your teacher did say to use the graphics specifically, you should understand that the entire applet is redrawn when paint(Graphics g) is called. Any direct painting using methods like g.drawstring that is done outside of this method will be overwritten every time the paint(Graphics g) method is called
20 years ago
The class is necessary and it is probably the Runnable as you suspected. I agree putting it in a jar might make the process easier
20 years ago
Yes, webstart downloads newer versions of the jvm and also caches your app on the client so it won't need to be downloaded again until there are updates. If you have to use the microsoft vm than you can't use swing. That is probably why the other applets work currently
[ March 29, 2004: Message edited by: Jason Huntz ]
20 years ago
what is a Chooser3 BTW, is taht the class that extends applet
20 years ago
you could run your applet as a web start application. It wouldn't keep you from having to install sun's java but it could allow you to more easily use different VM versions for different java apps if that is required
20 years ago
The JVM stands for java virtual machine. You will need a JVM of some kind to run any java code. Internet Explorer for a little while longer at least has a default JVM built into it, but it is a very old JVM. If you write to that, most people will be able to use your applet for now but in the future newer versions of IE will not have this default JVM installed. Every Java Runtime Environment(JRE) has a JVM. The Java Plugin if they still even call it that would be installed at the same time as the JRE.
If I were you I'd write to java 1.2 or 1.3 because 1.4 is still pretty new(just write it in 1.4 and compile with -target option set to compile to 1.2) unless I had used code features that aren't available as of that version. Some people may still need to do the download but it shouldn't be as many. Many of the larger computer makers have newer JVM's installed on their computers now anyway(though probably no newer than 1.3). That is just my opinion though and you could try to use the old microsoft jvm if you wanted. That is probably what Yahoo does though that jvm is pretty much obsolete
20 years ago
Your ClientApplet needs to extend JApplet I think
20 years ago