this is common issue where paint code isn't optimized
, part of side effect is possible to removing by disable flickering, have to set additonal parameters for JViewports ScrollMode
JViewport viewPort = jsp.getViewport();
viewPort.setScrollMode(JViewport.BLIT_SCROLL_MODE);
viewPort.setScrollMode(JViewport.BACKINGSTORE_SCROLL_MODE);
viewPort.setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
and by notifying by super.paintComponent(g);
too +1 for Óscar Gómez Alcañiz