Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interaction Controller/Table

Status
Not open for further replies.

nora1966

Programmer
Oct 12, 2006
10
FR
Hi;

I would like to know how :

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 table disply the list of customers

regards;

 
I've just written a program like this. Here's some helpful links:

I assume you've already seen this:

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:

How to increase the amount of memory for use by your program:

How to show a progress/cancel dialog for time consuming operations:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top