Java GUI aplication, load data to Jtable from a list
i have found the following link but i haven’t found an answer: http://docs.oracle.com/javase/tutorial/uiswing/components/table.html
please can someone gice me an example how should i do it.
my objects have 5 fields:Name,Grade,Salary,BirthYear,Sex
and the list is readed from a file so i dont know how many ojects will the List have.
I am working in netbeans.
The tutorial you linked to has an example: http://docs.oracle.com/javase/tutorial/uiswing/components/table.html#data. You should be able to adapt it to a
List<Employee>easily: