How to make 2 children being painted in one paint ?
I have the following structure: 2 JScrollPanes on Left and Right side of the vertical JSplitPane, 2 JTables - one on each JScrollPane and, external to the JSplitPane, vertical JScroll to controll both tables vertical scrolling.
When I move the scroll an event handler calculates and then applys new coordinates to both JScrolPane's viewports. As a result JTables gets repainted one after another and the delay between each paint event is clearly visible. How to remove this effect and make tables being repainted without the visible delay?