please assist by explaining what this code is trying to do - i mean the logic.
if ((InteractiveForm.this.tableModel.getRowCount() - 1) == row &&//i dont understand this line(the logic)
!InteractiveForm.this.tableModel.hasEmptyRow())
{
InteractiveForm.this.tableModel.addEmptyRow();//this is where we append a new row
}
the whole program can be found here
any explanation is greatly appreciated.