After you remove row number 0, what was row 1 becomes the new row 0 etc
because everything shifts up one row.
The way you've set up your loop, what starts off as row 1 will never be
removed - second time through the loop you remove row 1, but that is the
row that started off as row 2. Also, don't forget that each time through
the loop getRowCount() will return a different value.
Setting the row span looks odd too. You remove row i, then set the row
span for row i (which was row i+1 before you removed row i).
You could try this:
for (int i=0, n=__this.getRowCount() ; i<n ; i++)
__this.removeRow(0);
or this:
__this.removeAllRows();
HTH
Paul
> Jo�o Lopes
>
>
>
>