Hi,
Well first of all you have a typo at the top where you spell "class" as "calss". But I am sure that is a bad typo here and not in your program since you said it compiles and an error like that would prevent a compile.
I have tested your code as is and it does work fine. However, if you are running it in IE you will have to make sure it is not being blocked. check to make sure you don't have a yellow warning box at the top of the screen when you run it. Also make sure you are using a good test HTML page to activate the applet. This is what I used...
CODE
<html>
<head>
<title>Test</title>
</head>
<body>
<applet width=300 height=300 code="SimpleApplet.class"> </applet>
</body>
</html>
So compile your .java file into a .class and then make sure your "code=" part points to the class file's location. Here I am using a HTML test file that is in the same directory as the .class file so it will find it easily.
I hope some of these tips will solve your problem.
NOTE: If you have Firefox installed, try using that and see if you can see the output. If IE is the problem, you can go to Internet Options >> Advanced tab and in there activate any java checkboxes you think should be checked (use discretion).
This post has been edited by Martyr2: 12 Jul, 2007 - 09:00 AM