ProgressMonitorがダイアログを表示するまでの待ち時間
Total: 6850, Today: 1, Yesterday: 2
Posted by aterai at
Last-modified:
Summary
ProgressMonitorのダイアログが表示されるまでの待ち時間を設定します。
Screenshot

Advertisement
Source Code Examples
ProgressMonitor monitor = new ProgressMonitor(frame, "message", "note", 0, 100);
monitor.setMillisToDecideToPopup((int) millisToDecideToPopup.getValue());
monitor.setMillisToPopup((int) millisToPopup.getValue());
View in GitHub: Java, KotlinDescription
- ProgressMonitor#setMillisToDecideToPopup(int)
ProgressMonitorのダイアログを表示するかどうかを決めるまでの待ち時間を設定- デフォルト:
500ms - この待ち時間が経過するまで
ProgressMonitorのダイアログは表示されないProgressMonitorで使用するJProgressBarがnullでない(ProgressMonitorを使い回ししてProgressMonitor#close()されていないなど)場合はこの待ち時間を無視してダイアログが表示されることがある
- ProgressMonitor#setMillisToPopup(int)
ProgressMonitorのダイアログが表示されるまでの待ち時間を設定- デフォルト:
2000ms - 予想残り時間がこの時間より短い場合ダイアログは表示されない
- 予想残り時間は
JProgressBarの進捗状況(パーセント)と処理開始からの時間で計算される
- 予想残り時間は
ProgressMonitor#getMillisToDecideToPopup()からの待ち時間ではなく独立している(処理開始からの待ち時間になる)ProgressMonitor#getMillisToDecideToPopup()以下の場合はその直後にダイアログが表示される