wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Cannot Resolve Symbol (Window Adaptor) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Cannot Resolve Symbol (Window Adaptor) " Watch "Cannot Resolve Symbol (Window Adaptor) " New topic
Author

Cannot Resolve Symbol (Window Adaptor)

Chris Singer
Greenhorn

Joined: Nov 27, 2001
Posts: 15
I figure I must be making a fairly simple mistake here but for some reason I can't compile my code when it contains any reference to a "WindowAdaptor". I am importing the java.awt.* package and the java.awt.event.* package as can be seen from the code below.

When I compile I get the following error:

Can anyone help me out with why this could be happening? Thank you all for you time.

[This message has been edited by Chris Singer (edited December 12, 2001).]
Tom Ben
Ranch Hand

Joined: Aug 17, 2001
Posts: 109
You need to extend the WindowAdapter class because it is abstract. But since you are already extending the Frame class then implement WindowListener. Or extend the WindowAdapter and then make an instance of the Frame class. Hopes this helps you out.

Originally posted by Chris Singer:
[B]I figure I must be making a fairly simple mistake here but for some reason I can't compile my code when it contains any reference to a "WindowAdaptor". I am importing the java.awt.* package and the java.awt.event.* package as can be seen from the code below.

When I compile I get the following error:

Can anyone help me out with why this could be happening? Thank you all for you time.

[This message has been edited by Chris Singer (edited December 12, 2001).][/B]


------------------
Sun Certified Programmer on the Java 2 Platform


Sun Certified Programmer on the Java 2 Platform
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot Resolve Symbol (Window Adaptor)