944,065 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 4353
  • Java RSS
Dec 23rd, 2004
0

JTable not calling getValueAt - any ideas?

Expand Post »
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 !
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
grussell is offline Offline
6 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: How to make a thread never be terminated?
Next Thread in Java Forum Timeline: JarOutputStream





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC