Uses of Class javax.swing.JSlider (Java Platform SE 8 )
Date: 2026-03-16

## Uses of Class
javax.swing.JSlider

- Packages that use JSlider
  Package | Description
  --- | ---
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel.
  javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated.

- - ### Uses of JSlider in javax.swing.plaf.basic

    Fields in javax.swing.plaf.basic declared as JSlider
    Modifier and Type | Field and Description
    --- | ---
    `protected JSlider` | BasicSliderUI.`slider`

    Methods in javax.swing.plaf.basic with parameters of type JSlider
    Modifier and Type | Method and Description
    --- | ---
    `protected ChangeListener` | BasicSliderUI.`createChangeListener(JSlider slider)`
    `protected ComponentListener` | BasicSliderUI.`createComponentListener(JSlider slider)`
    `protected FocusListener` | BasicSliderUI.`createFocusListener(JSlider slider)`
    `protected PropertyChangeListener` | BasicSliderUI.`createPropertyChangeListener(JSlider slider)`
    `protected BasicSliderUI.ScrollListener` | BasicSliderUI.`createScrollListener(JSlider slider)`
    `protected BasicSliderUI.TrackListener` | BasicSliderUI.`createTrackListener(JSlider slider)`
    `protected void` | BasicSliderUI.`installDefaults(JSlider slider)`
    `protected void` | BasicSliderUI.`installKeyboardActions(JSlider slider)`
    `protected void` | BasicSliderUI.`installListeners(JSlider slider)`
    `protected void` | BasicSliderUI.`uninstallDefaults(JSlider slider)`
    `protected void` | BasicSliderUI.`uninstallKeyboardActions(JSlider slider)`
    `protected void` | BasicSliderUI.`uninstallListeners(JSlider slider)`

    Constructors in javax.swing.plaf.basic with parameters of type JSlider
    Constructor and Description
    `ActionScroller(JSlider slider, int dir, boolean block)`
    `BasicSliderUI(JSlider b)`

  - ### Uses of JSlider in javax.swing.plaf.metal

    Methods in javax.swing.plaf.metal with parameters of type JSlider
    Modifier and Type | Method and Description
    --- | ---
    `protected PropertyChangeListener` | MetalSliderUI.`createPropertyChangeListener(JSlider slider)`

  - ### Uses of JSlider in javax.swing.plaf.synth

    Methods in javax.swing.plaf.synth with parameters of type JSlider
    Modifier and Type | Method and Description
    --- | ---
    `protected BasicSliderUI.TrackListener` | SynthSliderUI.`createTrackListener(JSlider s)`
    `protected void` | SynthSliderUI.`installDefaults(JSlider slider)`
    `protected void` | SynthSliderUI.`installListeners(JSlider slider)`
    `protected void` | SynthSliderUI.`uninstallDefaults(JSlider slider)` Uninstalls default setting.
    `protected void` | SynthSliderUI.`uninstallListeners(JSlider slider)`

    Constructors in javax.swing.plaf.synth with parameters of type JSlider
    Constructor and Description
    `SynthSliderUI(JSlider c)`

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.