public class JProgressBar extends Component
This class provides a minimal stub implementation of a progress bar component to allow the NDT tool to run in headless environments. The progress bar maintains value and indeterminate state but provides no actual visual representation.
All operations except state tracking are no-ops, maintaining API compatibility without requiring an actual graphical display system.
| Constructor and Description |
|---|
JProgressBar() |
| Modifier and Type | Method and Description |
|---|---|
boolean | isIndeterminate()Check if the progress bar is indeterminate. |
void | setIndeterminate(boolean b)Set the indeterminate state. |
void | setMaximum(int i)Set the maximum value. |
void | setMinimum(int i)Set the minimum value. |
void | setString(String str)Set the progress bar string. |
void | setStringPainted(boolean b)Set whether the progress bar string should be painted. |
void | setValue(int i)Set the progress bar value. |
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisiblepublic boolean isIndeterminate()
public void setIndeterminate(boolean b)
b - true if indeterminatepublic void setMaximum(int i)
i - the maximum valuepublic void setMinimum(int i)
i - the minimum valuepublic void setString(String str)
str - the string to displaypublic void setStringPainted(boolean b)
b - true if the string should be paintedpublic void setValue(int i)
i - the value