| Author |
Inner Classes
|
Reed Spool
Greenhorn
Joined: Jan 11, 2006
Posts: 14
|
|
The following code is exactly coppied from the Head First Java book page 384, i need to do animation and things but i get an error about "expected "{"" near the bottom of the code, i'm pretty sure it has to do with the fact that i'm using an inner class, and not about the animation itself, any help is greatly appreciated in solving this mystery error
|
Splinterspool
|
 |
Naseem Khan
Ranch Hand
Joined: Apr 25, 2005
Posts: 809
|
|
Check line class MyDrawPanel extendsJPanel. Provide space after extends and it will work Naseem
|
Asking Smart Questions FAQ - How To Put Your Code In Code Tags
|
 |
Garrett Rowe
Ranch Hand
Joined: Jan 17, 2006
Posts: 1295
|
|
I don't see any problem except that: is missing a space. Edit: I guess I'm late as usual. [ August 27, 2006: Message edited by: Garrett Rowe ]
|
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
|
 |
joy peter
Greenhorn
Joined: Aug 29, 2006
Posts: 13
|
|
I agree with Garett. Thanks, Joy
|
Awake Arise and Stop Not Till Your goal is reached
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12928
|
|
I agree with Naseem, Garrett and Joy.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
 |
|
|
subject: Inner Classes
|
|
|