Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

fireTableRowsInserted(ind,ind) without adding a new row consequnces?

843806Jun 24 2008 — edited Jun 26 2008
Hello 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2008
Added on Jun 24 2008
5 comments
278 views