You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2020/10/12 18:11:57 UTC

[GitHub] [netbeans] matthiasblaesing commented on pull request #2278: [NETBEANS-626] Invoke tableDataChanged on CountingTableModel from Ins…

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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