Is it a good idea to add one row and call fireTableRowInserted() or adding all rows and then call fireTableDataChanged()?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If all you do is adding new rows, it’s better to add all the rows, and call
fireTableRowsInserted()with the appropriate first and last rows. The view will have to handle only one event, and the event tells exactly what happens, which avoids refreshing the parts of the view that don’t need to be refreshed.