RemoteTableModel

Top  Previous  Next

 

RemoteTableModel is used to asynchronously retrieve the data from an underlying cacheable table model. Its default implementation, DefaultRemoteTableModel wraps around a CacheableTableModel and uses an internal thread in order to asynchronously retrieve the data from the underlying (uncached) model.

 

Example: Use a DefaultRemoteTableModel in order to asynchronously retrieve the data of an uncached DefaultTableModel:

 

DefaultTableModel dtm = new DefaultTableModel();

CachedTableModel ctm = new CachedTableModel(dtm);

DefaultRemoteTableModel rtm = new DefaultRemoteTableModel(ctm);

 

JTable table = new JTable();

table.setModel(rtm);