public class FileProgressMonitor
extends java.lang.Object
| Constructor and Description |
|---|
FileProgressMonitor(javax.swing.JProgressBar fileProgressBar,
long max)
Constructs a graphic object that shows progress, typically by filling in a
rectangular bar as the process nears completion.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicate that the operation is complete.
|
long |
getMaximum()
Returns the maximum value - the higher end of the progress value.
|
void |
setMaximum(int m)
Specifies the maximum value.
|
void |
setProgress(long newValue)
Indicate the progress of the operation being monitored.
|
public FileProgressMonitor(javax.swing.JProgressBar fileProgressBar,
long max)
fileProgressBar - the JProgressBar to monitormax - the upper bound of the rangepublic void setProgress(long newValue)
newValue - the value specifying the current value, between the maximum and
minimum specified for this componentpublic void close()
public long getMaximum()
setMaximum(int)public void setMaximum(int m)
m - an int specifying the maximum valuegetMaximum()