Example usage for javax.swing JViewport setScrollMode

List of usage examples for javax.swing JViewport setScrollMode

Introduction

In this page you can find the example usage for javax.swing JViewport setScrollMode.

Prototype

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

Source Link

Document

Used to control the method of scrolling the viewport contents.

Usage

From source file:Main.java

public static void fixScrollRendering(JViewport viewport) {
    viewport.setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
}