Example usage for javax.swing JSlider setExtent

List of usage examples for javax.swing JSlider setExtent

Introduction

In this page you can find the example usage for javax.swing JSlider setExtent.

Prototype

@BeanProperty(bound = false, expert = true, description = "Size of the range covered by the knob.")
public void setExtent(int extent) 

Source Link

Document

Sets the size of the range "covered" by the knob.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    JSlider slider = new JSlider();

    int newExtent = 10;
    slider.setExtent(newExtent);
}

From source file:Main.java

public static void main(String[] argv) throws Exception {
    JSlider slider = new JSlider();

    // Set an extent
    int extent = 10;
    slider.setExtent(extent);
}