Thank you for your response, you solved my first problem, however in terms of data structures I mean, what is the best data structure that is suitable for this type of data, the JTextFields are arranged in cells, and each column has its own loop that arranges these cells, some of them are for strings, others for ints/doubles, all i want to do is to save the data in a structure such as an array (maybe each column having its own array or an array of objects?) but I don't know how to achieve that, I believe I'm supposed to try and create set and get methods but I don't understand how to create them, if you could show me an example or refer me to some guide I'd be very grateful
code for textfields:
for(int i = 0; i < studentName.length; i++) {
studentName[i] = new JTextField();
studentName[i].setBounds(28, 33 + (i *21), 254, 22);
add.. }