UI: added cancel button for images downloading startup;

This commit is contained in:
Oleg Agafonov 2018-12-21 17:31:55 +04:00
parent 8df4ba3871
commit af5e48668e
3 changed files with 39 additions and 6 deletions

View file

@ -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);