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?
ResultSet
Use this http://technojeeves.com/joomla/index.php/free/59-resultset-to-tablemodel