com.lowagie.rups.model

Class ProgressDialog

public class ProgressDialog extends JDialog

An informational dialog window showing the progress of a certain action.
Field Summary
static JLabelINFO
the icon used for this dialog box.
protected JLabelmessage
label showing the message describing what's in progress.
protected JProgressBarprogress
the progress bar
static longserialVersionUID
a serial version uid.
Constructor Summary
ProgressDialog(JFrame parent, String msg)
Creates a Progress frame displaying a certain message and a progress bar in indeterminate mode.
Method Summary
voidsetMessage(String msg)
Changes the message describing what's in progress
voidsetTotal(int n)
Sets the maximum value for the progress bar.
voidsetValue(int value)
Changes the value of the progress bar.

Field Detail

INFO

public static final JLabel INFO
the icon used for this dialog box.

message

protected JLabel message
label showing the message describing what's in progress.

progress

protected JProgressBar progress
the progress bar

serialVersionUID

private static final long serialVersionUID
a serial version uid.

Constructor Detail

ProgressDialog

public ProgressDialog(JFrame parent, String msg)
Creates a Progress frame displaying a certain message and a progress bar in indeterminate mode.

Parameters: parent the parent frame of this dialog (used to position the dialog) msg the message that will be displayed.

Method Detail

setMessage

public void setMessage(String msg)
Changes the message describing what's in progress

Parameters: msg the message describing what's in progress

setTotal

public void setTotal(int n)
Sets the maximum value for the progress bar. If 0 or less, sets the progress bar to indeterminate mode.

Parameters: n the maximum value for the progress bar

setValue

public void setValue(int value)
Changes the value of the progress bar.

Parameters: value the current value