c0d*_*der 5 java swing progressmonitor
ProgressMonitor有两个构造函数:
public ProgressMonitor(Component parentComponent,
Object message,
String note,
int min,
int max) {
this(parentComponent, message, note, min, max, null);
}
private ProgressMonitor(Component parentComponent,
Object message,
String note,
int min,
int max,
ProgressMonitor group) {
this.min = min;
this.max = max;
this.parentComponent = parentComponent;
cancelOption = new Object[1];
cancelOption[0] = UIManager.getString("OptionPane.cancelButtonText");
this.message = message;
this.note = note;
if (group != null) {
root = (group.root != null) ? group.root : group;
T0 = root.T0;
dialog = root.dialog;
}
else {
T0 = System.currentTimeMillis();
}
}
Run Code Online (Sandbox Code Playgroud)
我没有看到第二个(私有)构造函数的原因,其中签名中唯一的变化ProgressMonitor group始终为null.
我错过了什么?
| 归档时间: |
|
| 查看次数: |
58 次 |
| 最近记录: |