Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: I can't figure out why i keep getting this error

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

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


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I can't figure out why i keep getting this error

    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.

Similar Threads

  1. [SOLVED] Simple error that I can't figure out how to fix
    By javapenguin in forum What's Wrong With My Code?
    Replies: 8
    Last Post: July 11th, 2011, 07:27 AM
  2. just one more error that i cannot figure out please help me.
    By knoxy5467 in forum What's Wrong With My Code?
    Replies: 31
    Last Post: June 14th, 2011, 09:04 AM
  3. Simple error can't figure out.
    By n00bprogrammer in forum What's Wrong With My Code?
    Replies: 14
    Last Post: September 30th, 2010, 12:19 PM
  4. I'm new at this and can't figure it out
    By jaheh06 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 22nd, 2010, 08:44 AM
  5. Can not figure out my programs error!
    By mparkerj in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 16th, 2010, 10:48 AM