| | |
JTable not calling getValueAt - any ideas?
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2004
Posts: 6
Reputation:
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 !
![]() |
Similar Threads
- JTable into JPane (Java)
- JComboBox in JTable (Java)
- Problem while using function from loaded dll (C++)
- Time count (Java)
- parameter Passing by Ref (C)
- About Jtable (Java)
- DataContext problem - inserting existing data (C#)
- function in master page accesible from some content pages but not others (ASP.NET)
- JTable problem (Java)
Other Threads in the Java Forum
- Previous Thread: How to make a thread never be terminated?
- Next Thread: JarOutputStream
| Thread Tools | Search this Thread |
911 addball addressbook android api append applet application apps array arrays automation binary bluetooth businessintelligence button card chat class client code collision component crashcourse css csv database eclipse ee error fractal free game gis givemetehcodez graphics gui html ide image input integer integration j2me java javaarraylist javadoc javafx javaprojects jni jpanel julia jvm linux list loan loop machine map method methods migrate mobile netbeans newbie oriented output phone physics print problem program programming project radio recursion reporting scanner screen se server service set size sms socket software sort sql string swing test textfield threads transfer tree trolltech ubuntu utility windows





