forked from External/mage
UI: added cancel button for images downloading startup;
This commit is contained in:
parent
8df4ba3871
commit
af5e48668e
3 changed files with 39 additions and 6 deletions
|
|
@ -177,8 +177,9 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
|
|||
new Thread(DownloadPicturesService.this).start();
|
||||
});
|
||||
|
||||
// BUTTON CANCEL
|
||||
// BUTTON CANCEL (dialog and loading)
|
||||
uiDialog.getCancelButton().addActionListener(e -> uiDialog.setVisible(false));
|
||||
uiDialog.getStopButton().addActionListener(e -> uiDialog.setVisible(false));
|
||||
|
||||
// PROGRESS BAR
|
||||
uiDialog.getProgressBar().setValue(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue