Is it possible to have more than one model for 1 view in JTable. The view toggles between the models depending on the requirement.
posted 15 years ago
Sure, but you'd need to implement your own custom TableModel, which passes data to and from the JTable and the appropriate model. Whenever you change the view, firing an appropriate TableModelEvent will cause the JTable to update.