Dynamically changing the contents of a jTable
is it possible to reload the contents of a jTable without instantiating the class where the table itself resides?.
I have a jtable that can hold table data.
at startup it has the data from 'TABLE 1', what I would wish to do is to change the content of the jtable to 'TABLE 2'.
I have a method that I use to populate the tables and it works fine on the first instantiation. but when I try to call it again to change the content, the contents does not seem to move.
are there other methods that I can use to change to jtable contents upon a certain action?
thanks for reading. :D