Hello everybody! My name is Han and I am a beginner in Java en I bought the book 'head first java'. I really love the book, only I got a script(from the book page 384) here and it isn't working It is supposed to be a simple animation, but java doesnt see the PaintComponent function in the inner class, so i only get a square with a round on it. I hope somebody can help me.
[ September 13, 2008: Message edited by: han happers ] [ September 13, 2008: Message edited by: han happers ]
Looks basically OK to me, except that in the go() method you're constructing an instance of MyDrawPanel, but in the code the class is named MydrawPanel; as such, this won't compile. Perhaps you've got another MyDrawPanel.class lying around from a previous compilation?