Re: JTables and dynamically adding data



Chase Preuninger wrote:

[Omitted context: using a button to add an extra column to an existing table]

every time you want to change it just create a new model and use the
setModel function in the JTable class to update the UI

That isn't necessary. Calling fireTableStructureChanged() is sufficient. See my example elsewhere in this thread.

--
RGB
.