Example usage for javax.swing JSlider getPaintTicks

List of usage examples for javax.swing JSlider getPaintTicks

Introduction

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

Prototype

public boolean getPaintTicks() 

Source Link

Document

Tells if tick marks are to be painted.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    // Create a horizontal slider that moves left-to-right
    JSlider slider = new JSlider();
    // Determine if currently showing ticks
    boolean b = slider.getPaintTicks(); // false

}