Hi, we have a DB application with a java front end.
We are using JDK 1.4.2_01.
We load query results to a an TableModel and place
this into a JTable.
We then goto each row in the table to grab columns 0 - 5
using the row numbr we got from the abstract table model.
curRow = atm.getCurrentRow();
for(int j = 0; j < 6; j++)
jtLocal.getComponentAt(curRow, j).setEnabled(true);
We loop through each row like this. We can have any number of rows depending on the live, dynamic data we are drawing from.
When we reach a curRow of 783 exactly, we get a NullPointer exception at the jtLocal.getComponentAt(curRow, j).setEnabled(true);
The abstract table model gives us the curRow, but the
JTable knows nothing about that row.
Any ideas of what's happening? Is there a JTable limitation or a TableModel limitation?
Any help will be appreciated.
We are using JDK 1.4.2_01.
We load query results to a an TableModel and place
this into a JTable.
We then goto each row in the table to grab columns 0 - 5
using the row numbr we got from the abstract table model.
curRow = atm.getCurrentRow();
for(int j = 0; j < 6; j++)
jtLocal.getComponentAt(curRow, j).setEnabled(true);
We loop through each row like this. We can have any number of rows depending on the live, dynamic data we are drawing from.
When we reach a curRow of 783 exactly, we get a NullPointer exception at the jtLocal.getComponentAt(curRow, j).setEnabled(true);
The abstract table model gives us the curRow, but the
JTable knows nothing about that row.
Any ideas of what's happening? Is there a JTable limitation or a TableModel limitation?
Any help will be appreciated.