JTable not calling getValueAt - any ideas?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2004
Posts: 6
Reputation: grussell is an unknown quantity at this point 
Solved Threads: 0
grussell grussell is offline Offline
Newbie Poster

JTable not calling getValueAt - any ideas?

 
0
  #1
Dec 23rd, 2004
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 !
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC