Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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.

Attributes

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.

Content

No child content is accepted in a slider.

Examples

//TODO

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
  • No labels