|
Dear all
I would like to delete the first row when counter = 1,
however deleteRow() erases not only the first row but also headings
because it execute ResutlsTable.reset().
so I have to set custum headings again after doing deleteRow().
Is there anyway to delete only the first row when counter=1?
or can we change the source code not to use reset() when couner=1?
Hide
-----------------------------------------------------
/** Deletes the specified row. */
public synchronized void deleteRow(int row) {
if (counter==0 || row>counter-1) return;
if (counter==1)
{reset(); return;}
if (rowLabels!=null) {
for (int i=row; i<counter-1; i++)
rowLabels[i] = rowLabels[i+1];
}
for (int i=0; i<=lastColumn; i++) {
if (columns[i]!=null) {
for (int j=row; j<counter-1; j++)
columns[i][j] = columns[i][j+1];
}
}
counter--;
}
------------------------------------------------------
|