Reputation: 8342
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?
Upvotes: 0
Views: 192
Reputation: 346317
"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:
Upvotes: 3
Reputation: 2956
Are both files in the directory
<project root>/Sartre/Connect4 ?
It might mess things up if the structure is
<project root>/Sarte.Connect4
Upvotes: 2