| Package | Description | 
|---|---|
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultBoundedRangeModelA generic implementation of BoundedRangeModel. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected BoundedRangeModel | JScrollBar. modelThe model that represents the scrollbar's minimum, maximum, extent
 (aka "visibleAmount") and current value. | 
| protected BoundedRangeModel | JProgressBar. modelThe object that holds the data for the progress bar. | 
| protected BoundedRangeModel | JSlider. sliderModelThe data model that handles the numeric maximum value,
 minimum value, and current-position value for the slider. | 
| Modifier and Type | Method and Description | 
|---|---|
| BoundedRangeModel | JTextField. getHorizontalVisibility()Gets the visibility of the text field. | 
| BoundedRangeModel | JSlider. getModel()Returns the  BoundedRangeModelthat handles the slider's three
 fundamental properties: minimum, maximum, value. | 
| BoundedRangeModel | JScrollBar. getModel()Returns data model that handles the scrollbar's four
 fundamental properties: minimum, maximum, value, extent. | 
| BoundedRangeModel | JProgressBar. getModel()Returns the data model used by this progress bar. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | JSlider. setModel(BoundedRangeModel newModel)Sets the  BoundedRangeModelthat handles the slider's three
 fundamental properties: minimum, maximum, value. | 
| void | JScrollBar. setModel(BoundedRangeModel newModel)Sets the model that handles the scrollbar's four
 fundamental properties: minimum, maximum, value, extent. | 
| void | JProgressBar. setModel(BoundedRangeModel newModel)Sets the data model used by the  JProgressBar. | 
| Constructor and Description | 
|---|
| JProgressBar(BoundedRangeModel newModel)Creates a horizontal progress bar
 that uses the specified model
 to hold the progress bar's data. | 
| JSlider(BoundedRangeModel brm)Creates a horizontal slider using the specified
 BoundedRangeModel. | 
 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, 2015, Oracle and/or its affiliates.  All rights reserved.