The following methods in this group control the extent, minimum, maximum, and current values of the slider:
public int getValue() public int getExtent() public int getMinimum() public int getMaximum() public void setValue(int n) public void setExtent(int n) public void setMinimum(int n) public void setMaximum(int n)
The following methods manage the change listener used by the slider. A change event can optionally be generated each time the slider value changes (usually through some user interaction):
protected ChangeListener createChangeListener() public void addChangeListener(ChangeListener l) public void removeChangeListener(ChangeListener l)
The following methods manage the model used by the slider instance. By default JSlider will assign a default model, but custom models can be created and added to the instance, if desired:
public BoundedRangeModel getModel() public void setModel(BoundedRangeModel newModel)
The following methods manage the characteristics of the major and minor tick marks displayed on the scale when the slider is drawn:
public int getMajorTickSpacing() public int getMinorTickSpacing() public boolean getSnapToTicks() public void setMajorTickSpacing(int n) public void setMinorTickSpacing(int n) public void setSnapToTicks(boolean b)
The following methods in this group manage the labels drawn on the slider scale. JSlider offers full control of the mechanism used to draw each of the value labels on the scale.
public void setLabelTable(Dictionary labels) public Dictionary getLabelTable() protected void updateLabelUIs() public Hashtable createStandardLabels(int increment, int start)