populating jtable from database
I am trying to fill a jTable from a resultset, but when I try to add it it asks for a TableModel and not a resultset.
DBConnect dbSample = new DBConnect ("NAMES");
Do I need to convert the resultset into a TableModel? If so how does one do this?
public ResultSet getDetails () throws SQLException
Statement stmt = conn.createStatement ();
ResultSet rs = stmt.executeQuery ("SELECT * FROM DETAILS");
Re: populating jtable from database