Example usage for javax.swing JViewport SIMPLE_SCROLL_MODE

List of usage examples for javax.swing JViewport SIMPLE_SCROLL_MODE

Introduction

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

Prototype

int SIMPLE_SCROLL_MODE

To view the source code for javax.swing JViewport SIMPLE_SCROLL_MODE.

Click Source Link

Document

This mode uses the very simple method of redrawing the entire contents of the scrollpane each time it is scrolled.

Usage

From source file:Main.java

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