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
?
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
?
If you have a table object, then you can a tablemodel by using getModel()
.