File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Inner Classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inner Classes" Watch "Inner Classes" New topic
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: 1296
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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13868
    
  10

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inner Classes
 
Similar Threads
Help me understand Inner Classes with code example provided
this animation code does not show o/p
script question
Event Problems: Need Help
help me it is a simple code but i need help