Element: Slider.

Icon:   

Text: A slider to display and modify a value.

Description: A Slider is a basic element that displays and allow editing a numeric value. The value is selected by moving the slider between two extreme values. If the "Format" property is not empty, the value is also displayed in text form. The element can invoke up to three different actions when interacting with it.

Table of properties

Name Description Values accepted
Variable
Variable The variable displayed and modified using this element. A variable of type double or int.
Value An initial value for the variable. Any constant or variable of type double or int.
Minimum The smallest value that can be selected. Any constant or variable of type double or int.
Maximum The largest value that can be selected. Any constant or variable of type double or int.
Format The format for the visualization of the value in text form. Any value acepted by the class java.text.DecimalFormat. See additional info.
Orientation The direction of the slider. One of the constants: HORIZONTAL or VERTICAL

Ticks

Ticks Number of ticks to display by the slider in its range. Any constant or variable of type int.
Ticks Format The format for the ticks. Any value acepted by the class java.text.DecimalFormat. See additional info.
Closest Whether the value selected must adjust to the closest tick. A boolean variable or one of the constants true or false.

Interaction

Enabled Whether the value displayed can be modified or not. A boolean variable or one of the constants true or false.
On Press The action to invoke when the slider is pressed. The Java code to invoke for the action. 
On Drag The action to invoke when the slider is moved. The Java code to invoke for the action. 
On Release The action to invoke when the slider is released. The Java code to invoke for the action. 
Graphical Aspect
Size The size of the element. An Object variable of the class java.awt.Dimension or the integer values for the width and the height, respectively, separated by a comma.
Background The color used for the background of the element. An Object variable of the class java.awt.Color or one of the predefined colors: black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, yellow.

A color can also be specified providing its integer RGB coordinates (between 0 and 255), plus an optional transparency coordinate.

The default value is decided by the system.

Foreground The color used for the text displayed by the element. See the values for the Background property.
Font The font used for the text displayed by the element. An Object variable of the class java.awt.Font or a set of family, style and size, separated by commas. The style must be one of  plain, bold, italic, bold | italic. Example: Monospaced,italic,18.

The default value is decided by the system.

Tooltip The text displayed when the cursor lingers on top of the element. Any constant or variable of type String.