aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Table Rows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Table Rows" Watch "Table Rows" New topic

Table Rows

Steve Kiernan

Joined: Nov 07, 2001
Posts: 6
I'm trying to use a table to display some data that a user enters. I have a set number of columns but,I do not want to have set nuber of rows. The data in each row will be different everytime. I would like the rows to be added as the user selects enter. How can I construct a tablemodel to accept this.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Look at DefaultTableModel. It as an addRow() method. It will do what you need it to.
I agree. Here's the link:
subject: Table Rows
Similar Threads
how to pass cell values(td) as hidden things to Action class(struts-2)?
Sorting of Table
Sorting of Table
Most effective JTable sorting
Displaying data in a table