... its not an applet, its just a regular Java class. If that book is making you think this is supposed to work, toss it and buy a proper one. If you're deviating from the book, stop doing that. Be patient and work through it in the pace it is proposing.
Also stay away from applets, they are not what makes Java useful. If you must do something in the browser consider JavaFX 2, once you've learned plain old Java of course.
As for the forum: stick the New to Java for now. And finally: use \