Example usage for javax.swing JScrollBar setEnabled

List of usage examples for javax.swing JScrollBar setEnabled

Introduction

In this page you can find the example usage for javax.swing JScrollBar setEnabled.

Prototype

public void setEnabled(boolean x) 

Source Link

Document

Enables the component so that the knob position can be changed.

Usage

From source file:de.unibayreuth.bayeos.goat.panels.timeseries.JPanelChart.java

private JScrollBar createJScrollBar() {
    JScrollBar b = new JScrollBar(JScrollBar.HORIZONTAL);
    b.setModel(new DefaultBoundedRangeModel());
    b.setEnabled(false);
    return b;//w  w w . j  a v a 2 s  .com
}