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");
}