I have a JTable displaying the results of user-defined searches which are sent back across the Client Server network. First off everything displays fine,
but when I specify search criteria, nothing is displayed. I have printed out the vector containing the information at the client end and all the data is there.
Here is a little bit of the code to see if it helps...from the search constructor
of the class extending AbstractTableModel...
try {
output.writeInt(FIND_RECORDS);
output.writeObject(selectVector); // criteria of search
output.flush();
}
catch (IOException ioException) {
System.err.println("Failed to write to Server");
}
try {
returnVector.clear();
returnVector = (Vector) input.readObject(); // separate vector for search
System.out.println(returnVector.toString()); // returning correct data
}
When the data is put to the JTable nothing displays:
public Object getValueAt(int row, int col) { // not being called after search criteria are used...
Any help would be greatly appreciated - Merry Xmas to y'all !