I finally managed to get my GUI setup, and the listeners registered. I have a Student class, a StudentDemo class, and a StudentInfoWindow.
In the StudentInfoWindow class i have a addButton, when i click it, it grabs the info from the text fields, creates a student object, adds it to an array list, and finally clears the text fields. I would like to keep on adding Objects/elements to the array list every time i hit addButton.
I can't get around the idea, i think i should have a boolean variable isAdding, to keep track of when i should stop adding elements, but i cant even add multiple ones to begin with.