Hello.
I was wandering how to display a content of an ArrayList in a GUI??
I tried to do this in this way:
for(int i = 0;i<student.size(); i++){ JOptionPane.showMessageDialog(null, student.get(i).getName() + " " + student.get(i).getSurname() + " " + student.get(i).getGradesString() + "\n"); }
but it did not work and it was displaying dialog box one after another.
What i would like is to display all this informations all at once in one window.
Could anyone give me some tips on how to do this??
Regards


LinkBack URL
About LinkBacks
Reply With Quote