P
pat270881
Hello,
I have a JFrame with a JTable where some lines with two columsn are
displayed. I want to write a function where all rows of the table are
cleared. My JTable has a DataTableModel model. So I thought I have to
remove the rows of the model to delete the rows from the JTable with
the following code:
for (int i = 0; i < model.getRowCount(), i++)
{
model.remove(i);
}
But when I use this code in that way, two rows of the JTable are not
deleted.
Can anybody help me with this problem?
thx
pat
I have a JFrame with a JTable where some lines with two columsn are
displayed. I want to write a function where all rows of the table are
cleared. My JTable has a DataTableModel model. So I thought I have to
remove the rows of the model to delete the rows from the JTable with
the following code:
for (int i = 0; i < model.getRowCount(), i++)
{
model.remove(i);
}
But when I use this code in that way, two rows of the JTable are not
deleted.
Can anybody help me with this problem?
thx
pat