Search code examples
javaobjectcreation

Java Object Creation Error


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?


Solution

  • Are both files in the directory

    <project root>/Sartre/Connect4 ?
    

    It might mess things up if the structure is

    <project root>/Sarte.Connect4