Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Generated Object

A javax.swing.JSlider is returned, unless the user passes in a subclass of JSlider as the value argument, in which case the value argument is returned.


See also: JComponent

  • extent <int> Size of the range covered by the knob.
  • inverted <boolean> If true reverses the slider values from their normal order
  • labelTable <Dictionary> Specifies what labels will be drawn for any given value.
  • majorTickSpacing <int> Sets the number of values between major tick marks.
  • maximum <int> The sliders maximum value.
  • minimum <int> The sliders minimum value.
  • minorTickSpacing <int> Sets the number of values between minor tick marks.
  • model <BoundedRangeModel> The sliders BoundedRangeModel.
  • orientation <int> Set the scrollbars orientation to either VERTICAL or HORIZONTAL.
  • paintLabels <boolean> If true labels are painted on the slider.
  • paintTicks <boolean> If true tick marks are painted on the slider.
  • paintTrack <boolean> If true, the track is painted on the slider.
  • snapToTicks <boolean> If true snap the knob to the nearest tick mark.
  • value <int> The sliders current value.


No child content is accepted in a slider.



Observable Attributes

The following properties are observable and can be used as sourceProperty in bind():

  • value - via synthetic observation
  • inverted
  • labelTable
  • majorTickSpacing
  • maximum
  • minimum
  • minorTickSpacing
  • model
  • orientation
  • paintLabels
  • paintTicks
  • paintTrack
  • snapToTicks