A new Java-Swing Student ask for help
I have a question that I hope anyone here could help me out.
I have learned Java at school but without learning Swing.
I got a problem that if the applet using Swing,
IE(5.5) and Netscapt(4.7) can't find the applet even
though I put all the necessary files into the same folder.
I even tried to use the sample files, including the .html, come with the book without modifying them. It still doesn't work. It work with appletviewer, though.
If I change the .java file into a .java without Swing, it works with any browers.
Here is the .java and .html files come with the book :
import javax.swing.JApplet; // import class JApplet
import java.awt.Graphics;// import class Graphics
public class WelcomeApplet extends JApplet {
public void paint( Graphics g )
{
g.drawString( "Welcome to Java Programming!", 25, 25 );
}
}
The .html file as below:
<html>
<applet code="WelcomeApplet.class" width=300 height=30>
</applet>
</html>
I know this is a simple question but I really can't figure it out. Hope anyone here could give me any advise.
Thanks a lot.

