User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 427,379 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,008 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 2968 | Replies: 0
Reply
Join Date: Nov 2004
Location: UK
Posts: 6
Reputation: grussell is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
grussell grussell is offline Offline
Newbie Poster

Solution JTable not calling getValueAt - any ideas?

  #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 !
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 4:03 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC