public class JProgressBar extends JComponent
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_indeterminate |
protected java.lang.Thread |
_indeterminateThread |
protected int |
_maximum |
protected int |
_minimum |
protected java.lang.String |
_string |
protected boolean |
_stringPainted |
protected int |
_value |
protected int |
_width
The length of this component on the screen.
|
_border_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
JProgressBar()
Creates a horizontal progress bar that displays a border
but no progress string.
|
JProgressBar(int min_,
int max_)
Creates a progress bar with the specified minimum and
maximum values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(int level_) |
void |
draw()
Draws the border of the component (if there is one).
|
void |
finalize() |
int |
getHeight() |
int |
getMaximum() |
int |
getMinimum() |
Dimension |
getSize()
Get the screen size of the progress bar.
|
java.lang.String |
getString()
Returns the value of the progress string
|
int |
getValue() |
int |
getWidth() |
boolean |
isFocusTraversable()
This component will not receive focus when Tab or Shift-Tab is pressed.
|
boolean |
isIndeterminate() |
boolean |
isStringPainted()
Returns the value of the _stringPainted property
|
Dimension |
minimumSize() |
void |
processKeyEvent(KeyEvent ke_)
The JProgressBar class ignores key events.
|
void |
requestFocus()
The JProgressBar component never gets the keyboard input focus.
|
void |
setIndeterminate(boolean newval) |
void |
setMaximum(int max_)
Set the progress bar's maximum value.
|
void |
setMinimum(int min_)
Set the progress bar's minimum value.
|
void |
setSize(Dimension size_)
Set the size of the component on the screen.
|
void |
setString(java.lang.String string_)
Sets the value of the progress string
|
void |
setStringPainted(boolean stringPainted_)
Set the value of the _stringPainted property
|
void |
setValue(int value_)
Set the progress bar's value.
|
getBorder, getInsets, setBorderaddFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, invalidate, isDisplayed, isEnabled, isRecursivelyVisible, isTotallyObscured, isValid, isVisible, processEvent, processFocusEvent, processMouseEvent, repaint, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColorprotected int _minimum
protected int _value
protected int _maximum
protected boolean _stringPainted
protected java.lang.String _string
protected int _width
protected boolean _indeterminate
protected java.lang.Thread _indeterminateThread
public JProgressBar()
public JProgressBar(int min_,
int max_)
public void setMinimum(int min_)
public void setValue(int value_)
public void setMaximum(int max_)
public void setSize(Dimension size_)
public Dimension getSize()
public void draw()
JComponentdraw in class JComponentpublic boolean isFocusTraversable()
isFocusTraversable in class Componentpublic void processKeyEvent(KeyEvent ke_)
processKeyEvent in class Componentpublic void requestFocus()
requestFocus in class Componentpublic Dimension minimumSize()
minimumSize in class Componentpublic int getMinimum()
public int getValue()
public int getMaximum()
public boolean isStringPainted()
public void setStringPainted(boolean stringPainted_)
public void setString(java.lang.String string_)
public void setIndeterminate(boolean newval)
public boolean isIndeterminate()
public java.lang.String getString()
public void finalize()
finalize in class java.lang.Object