0

I'm trying to learn from the following example: CustomDialog.java

However when I go to compile it I get the following error:

OracleExample.java:47: error: cannot find symbol
private DialogDemo dd;
        ^
symbol:   class DialogDemo
location: class CustomDialog
OracleExample.java:64: error: cannot find symbol
public CustomDialog(Frame aFrame, String aWord, DialogDemo parent) {
                                                ^
symbol:   class DialogDemo
location: class CustomDialog
2 errors

Any help is greatly appreciated.

3
  • You need to use the DialogDemo.java code as well. Look at where you got the code from, and you should find the other class's code as well. Commented Nov 10, 2013 at 1:04
  • @HovercraftFullOfEels How about an answer? Commented Nov 10, 2013 at 1:05
  • The tag compiler should be applied to questions concerning the programming of compilers or for questions about the detailed inner workings of compilers. Don't use compiler for questions about options and settings for a particular compiler, use the name of the compiler you are interested in instead. Commented Nov 14, 2013 at 0:38

1 Answer 1

1

The error is telling you that the class that you're trying to use is not on the compiler's class path and is not imported (if need be).

Look here for a link to the needed class: DialogDemo.java class

Consider downloading the entire project.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.