List of usage examples for javax.swing JViewport setScrollMode
@BeanProperty(bound = false, enumerationValues = { "JViewport.BLIT_SCROLL_MODE",
"JViewport.BACKINGSTORE_SCROLL_MODE",
"JViewport.SIMPLE_SCROLL_MODE" }, description = "Method of moving contents for incremental scrolls.")
public void setScrollMode(int mode)
From source file:Main.java
public static void fixScrollRendering(JViewport viewport) { viewport.setScrollMode(JViewport.SIMPLE_SCROLL_MODE); }