0
package Sartre.Connect4;

import javax.swing.*;


public class ChatGUI extends JDialog {

public ChatGUI(){

    setTitle("Chat");

}

}

when i do this in another class in the same package:

ChatGUI chatGUI = new ChatGUI();

i end up with a situation: Cannot Find Symbol

please help?

2
  • Could you post the code for your other class? Commented Apr 26, 2010 at 10:51
  • that is all theres to it. rest of of the main class is unrelated to ChatGUI. Commented Apr 26, 2010 at 10:53

2 Answers 2

3

"Cannot Find Symbol" means that the compiler cannot find a class, method or field that's being used in your code (it wil also tell you exactly which one). This means one of two things:

  • The class/method/field name is mistyped
  • The compiler cannot find it in its classpath
Sign up to request clarification or add additional context in comments.

Comments

2

Are both files in the directory

<project root>/Sartre/Connect4 ?

It might mess things up if the structure is

<project root>/Sarte.Connect4

1 Comment

i think it is something to do with this. i made a copy of this to another folder and using the copy.

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.