|
|
|
@ -190,7 +190,7 @@ public class DownloadOnlineSourcesHelper implements DownloadSourcesEvent{
|
|
|
|
|
|
|
|
|
|
private void setProgress(double current) { |
|
|
|
|
progressbar.setValue((int) current); |
|
|
|
|
progressbar.setString(current / totalBytes * PERCENT + "%"); |
|
|
|
|
progressbar.setString((int) (current / totalBytes * PERCENT) + "%"); |
|
|
|
|
progressbar.paintImmediately(new Rectangle(0, 0, LOAD_WIDTH, INCIDENT_HEIGHT * 2)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|