matthiasblaesing commented on pull request #2278:
URL: https://github.com/apache/netbeans/pull/2278#issuecomment-707271489


   The problem is that the row count of the JTable is updated, _after_ 
tableDataChanged is reached. So the method reads the row count at the wrong 
moment. A fix needs to ensure all pending events have happened before the 
_read_ is done. The read is backingTable.getRowCount() - if that is invoked 
directly and only the fireTableDataChanged is dispatched into the invokeLater, 
you are still reading the wrong value.
   
   The whole method body of tableDataChanged most be moved into the invokeLater.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to