I can't figure out why i keep getting this error
It keeps telling me that it can't find the symbol and I don't know why! I had to put all of this in a different class because i originally had it under main method but i couldn't get the radio buttons working so now it is in a different class.
I imported everything that i needed,set up my text fields, pannels, etc and everything is spelled correctly.
//---listener
class ButtonListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{//if else -> depends on which button has been pressed and which radio button is currently selected.
//actions go here --
// first button
if("first".equals(event.getActionCommand()))
{
if(students.isSelected())
{
String name = nameField.getText();
String major = majorField.getText();
String id = idField.getText();
It keeps saying it can't find symbol of this which im trying to create a new student which i have a student class that should let me initialize this here!!!!
Student aStudent = new Student(name,id,major);
school.addStudent(aStudent);
textArea.append("Student Added"+"\n");
}
Re: I can't figure out why i keep getting this error
Quote:
It keeps telling me that it can't find the symbol
You forget to show the exact text of the error message so we'd know what the problem is.
Please copy and paste here the FULL text of the error message.