•
•
•
•
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
![]() |
•
•
Join Date: Nov 2004
Location: UK
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
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 !
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 !
![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- How can i make perticular row or perticular cell of a JTable as Editable dynamically (Java)
- Weird JTable behaivour (Java)
- Wierd Error message. (ASP.NET)
- JTable problem (Java)
- calling a SQL UDF? (PHP)
- C++ (C++)
- Calling Oracle Stored Procedures with ASP (ASP)
- Any Ideas for Projects???? (*nix Software)
- Group Project Ideas (Geeks' Lounge)
Other Threads in the Java Forum
- Previous Thread: How to make a thread never be terminated?
- Next Thread: JarOutputStream


Linear Mode