0

I know how to get a simple TableModel from a table that I knew.

But I wanted to know how to get a TableModel from a table which I don't know its columns and rows details.

Isn't there a way to get the table model directly from the ResultSet?

Martin54
  • 1,349
  • 2
  • 13
  • 34
Tarik
  • 2,151
  • 4
  • 19
  • 26

2 Answers2

3

Use this http://technojeeves.com/joomla/index.php/free/59-resultset-to-tablemodel

StanislavL
  • 56,971
  • 9
  • 68
  • 98
1

If you have a table object, then you can a tablemodel by using getModel().

Sachin Mhetre
  • 4,465
  • 10
  • 43
  • 68