Hey Donald,
I was working on a similar program recently and the following is what I did to get the data from the ResultSet into the JTable and
get it to repaint itself. I got this information from Ivor Horton's "Beginning Java2" (Wrox publishing) Ch.18.
A great book for beginning Java programmers.
The following code was put into a seperate class as an extension of AbstractTableModel. The purpose of this class is to implement a method (setResultSet) which takes a row from the ResultSet places it into a
String array. The array is then placed into a vector. This is done in a while loop using the .next() method of
ResultSet until all the rows of the ResultSet are placed into the vector. Details are as follows:
After this class is created another class is created to implement
the GUI to hold the JTable. The above mentioned class (being an extension of AbstractTableModel) is put into the JTable, thus the vector of query rows is loaded into the JTable.
(edited by Cindy to format code)
[This message has been edited by Cindy Glass (edited February 22, 2001).]