This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Help with a simple compiler error... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help with a simple compiler error..." Watch "Help with a simple compiler error..." New topic
Author

Help with a simple compiler error...

David J. Gonzo
Greenhorn

Joined: Feb 15, 2005
Posts: 20
Hello

I am designing a simple program where a user can enter a word or phrase and the program determines if it is a palindrome. A palindrome is a word or phrase that is spelled the same both forwards and backwards...

This is the compile error:

Palindrome.java:165: cannot resolve symbol
symbol : class About
location: class Palindrome
new About(this).setVisible(true);


And here is my code:


Appreciate any help....
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Have you defined a class named About in the same package as the Palindrome class? The compiler error is telling you that it does not know the definition of the symbol "About." As you're using it, it should be a class that extends a JComponent of some sort, like Palindrome does (JFrame is a JComponent I believe).
David J. Gonzo
Greenhorn

Joined: Feb 15, 2005
Posts: 20
Thanks

Your information helped me solve the problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with a simple compiler error...
 
Similar Threads
Revalidate problems
JTextArea, Focus
JScrollPane Frustrations
Saving drawing on simple paint application problem
palindrome not very proficient...