-2

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.

Ankit Kumar Singhal
  • 167
  • 1
  • 3
  • 13

1 Answers1

1

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.

lance-java
  • 25,497
  • 4
  • 59
  • 101