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 Help with a simple compiler error... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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
JScrollPane Frustrations
palindrome not very proficient...
JTextArea, Focus
Saving drawing on simple paint application problem