Ankit Kumar Singhal Ankit Kumar Singhal - 1 month ago 11
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.


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.