• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner Classes

 
Reed Spool
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check line class MyDrawPanel extendsJPanel. Provide space after extends and it will work

Naseem
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
joy peter
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Garett.
Thanks,
Joy
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15480
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Naseem, Garrett and Joy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic