Ankit Kumar Singhal Ankit Kumar Singhal - 20 days ago 5
Java Question

How to implement tablemodel in java?

I am new with JAVA. I have started using JTable. I could not understand how to use tablemodel with JTable. Objective is to understand the use of tablemodel.

Answer

As it's name suggests... the TableModel is a model for the table. The JTable is a generic utility which can display data from any source. By implementing a concrete TableModel you are giving the JTable all it needs to populate itself.