OK. I'll try again. Your NPE was generated by something on line 108 of your source file.
Now: Find line 108 in that file. Write it down on pencil and paper. Really. Pencil and paper.
Look...
Type: Posts; User: Zaphod_b
OK. I'll try again. Your NPE was generated by something on line 108 of your source file.
Now: Find line 108 in that file. Write it down on pencil and paper. Really. Pencil and paper.
Look...
Yes. The applet class definition must be a public class. That's exactly what the error message was trying to tell us. (Did you try it? Did the first error message go away?)
If your error...
When I compile the program from a command line and run appletviewer from a command line, in addition to seeing Start: applet not initialized. at the bottom of the applet window, I get the following...