1- to extract the data from table (DefaultTableModel) to instantiates a javabean object (Customer).
2- to built the table when a dao return the customers list.
The core of what you need to do is to replace the 2dimensional array of strings with a one dimensional array of JavaBean Customers, which will have a member for each column.
I found it helpful to put all UI stuff in my TabelPanel class and the data manipulation stuff in my TableModel class.
These are some problems I had with my project:
How to maintain an ArrayList of objects of a certain class:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.