Data storing in table

Hi,

I think this is a very simple question, but I am confused.

I have lots of rows to be displayed in a table. Once I select some rows, I need other information (other than being displayed) of these selected data to store them into a new table in the database. How will I store these additional information?There are 100s of data to be displayed.

[366 byte] By [anteena] at [2007-10-3 9:15:50]
# 1

>How will I store these additional information?

Well, depending on how your table model is setup I assume you either have access to the data that is not displayed or at least have a key to a table or something to get that data.

Once you have it, then you are just talking about some insert PreparedStatements.

>There are 100s of data to be displayed.

This should not be a problem. (Am I missing something from your question?).

zadoka at 2007-7-15 4:28:31 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks for your reply. I am using default table model. The thing is that I am retrieving each row as new objects from the table. In that case, i don't know how to associate that with additional information. Can you throw some idea?
anteena at 2007-7-15 4:28:31 > top of Java-index,Desktop,Core GUI APIs...
# 3
Some ideas:1. Extend DefaultTableModel so that you can hold additional information that is not displayed.2. Make sure you have something unique in the table that you use to link to the additional data.
zadoka at 2007-7-15 4:28:31 > top of Java-index,Desktop,Core GUI APIs...
# 4
Just store all the data in the DefaultTableModel.You can change the view of the table to show only the columns you want by removing TableColumns from the TableColumnModel.
camickra at 2007-7-15 4:28:31 > top of Java-index,Desktop,Core GUI APIs...