fireTableRowsInserted(ind,ind) without adding a new row consequnces?
843806Jun 24 2008 — edited Jun 26 2008Hello all,
I am looking at code where someone is calling fireTableRowsInserted(index,index) when there is no new row being inserted or deleted?
What are the consequences when the above happens?
Does anything abnormal happen?
Method a
{
if(bool)
{
.......
fireTableRowsInserted(0,0);
}
else if(bool2)
{
.......
}
else if(bool3)
{
........
}
fireTableRowsInserted(0,0);
}
What will happen if bool is true?
fireTableRowsInserted will be called twice but there is only one row added!
Edited by: javapunt on Jun 24, 2008 9:08 AM
Edited by: javapunt on Jun 24, 2008 10:03 AM