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


   @Enroi it is good, that it is a smaller change. But it still involves the UI 
part manually updating the model part. The problem is still the coupling of the 
the two datamodels. The counting model relies on the UI being updated. So I 
suggest to modify this method:
   
   
https://github.com/apache/netbeans/blob/709587a5a001f78707c32a32c4272a21ecc85fca/ide/db.dataview/src/org/netbeans/modules/db/dataview/table/JXTableRowHeader.java#L189-L192
   
   When this method is invoked, all events on the EDT have to have been 
processed. Only when that is true, the UI model of the backing table is in a 
stable state. `SwingUtilities#invokeLater` is a candidate to handle this, as it 
will enqueue the new action after the existing events.
   
   


----------------------------------------------------------------
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