DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   JTable not calling getValueAt - any ideas? (http://www.daniweb.com/forums/thread15977.html)

grussell Dec 23rd, 2004 10:19 am
JTable not calling getValueAt - any ideas?
 
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 !


All times are GMT -4. The time now is 6:51 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC