Example usage for Java javax.swing JProgressBar fields, constructors, methods, implement or subclass
The text is from its open source code.
JProgressBar(int orient, int min, int max) Creates a progress bar using the specified orientation, minimum, and maximum. | |
JProgressBar(int min, int max) Creates a horizontal progress bar with the specified minimum and maximum. | |
JProgressBar(int orient) Creates a progress bar with the specified orientation, which can be either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL . | |
JProgressBar(BoundedRangeModel newModel) Creates a horizontal progress bar that uses the specified model to hold the progress bar's data. | |
JProgressBar() Creates a horizontal progress bar that displays a border but no progress string. |
void | addChangeListener(ChangeListener l) Adds the specified ChangeListener to the progress bar. |
int | getMaximum() Returns the progress bar's maximum value from the BoundedRangeModel . |
int | getMinimum() Returns the progress bar's minimum value from the BoundedRangeModel . |
BoundedRangeModel | getModel() Returns the data model used by this progress bar. |
String | getName() Gets the name of the component. |
Dimension | getSize() Returns the size of this component in the form of a Dimension object. |
String | getString() Returns a String representation of the current progress. |
int | getValue() Returns the progress bar's current value from the BoundedRangeModel . |
boolean | isIndeterminate() Returns the value of the indeterminate property. |
boolean | isStringPainted() Returns the value of the stringPainted property. |
boolean | isVisible() Determines whether this component should be visible when its parent is visible. |
void | putClientProperty(Object key, Object value) Adds an arbitrary key/value "client property" to this component. |
void | repaint() Repaints this component. |
void | revalidate() Supports deferred automatic layout. |
void | setBackground(Color bg) Sets the background color of this component. |
void | setBorder(Border border) Sets the border of this component. |
void | setBorderPainted(boolean b) Sets the borderPainted property, which is true if the progress bar should paint its border. |
void | setEnabled(boolean enabled) Sets whether or not this component is enabled. |
void | setForeground(Color fg) Sets the foreground color of this component. |
void | setIndeterminate(boolean newValue) Sets the indeterminate property of the progress bar, which determines whether the progress bar is in determinate or indeterminate mode. |
void | setMaximum(int n) Sets the progress bar's maximum value (stored in the progress bar's data model) to n . |
void | setMaximumSize(Dimension maximumSize) Sets the maximum size of this component to a constant value. |
void | setMinimum(int n) Sets the progress bar's minimum value (stored in the progress bar's data model) to n . |
void | setName(String name) Sets the name of the component to the specified string. |
void | setOpaque(boolean isOpaque) If true the component paints every pixel within its bounds. |
void | setOrientation(int newOrientation) Sets the progress bar's orientation to newOrientation , which must be SwingConstants.VERTICAL or SwingConstants.HORIZONTAL . |
void | setPreferredSize(Dimension preferredSize) Sets the preferred size of this component. |
void | setString(String s) Sets the value of the progress string. |
void | setStringPainted(boolean b) Sets the value of the stringPainted property, which determines whether the progress bar should render a progress string. |
void | setUI(ProgressBarUI ui) Sets the look-and-feel object that renders this component. |
void | setValue(int n) Sets the progress bar's current value to n . |
void | setVisible(boolean aFlag) Makes the component visible or invisible. |
void | updateUI() Resets the UI property to a value from the current look and feel. |