Browse Source

Merge pull request #1188 in BA/design from ~ZHENG/design:release/9.0 to release/9.0

* commit '9c927889f95ca060824f3a3c832e7dacd36790cb':
  进度条整数%
master
superman 7 years ago
parent
commit
887be775e6
  1. 2
      designer_chart/src/com/fr/plugin/chart/DownloadOnlineSourcesHelper.java

2
designer_chart/src/com/fr/plugin/chart/DownloadOnlineSourcesHelper.java

@ -190,7 +190,7 @@ public class DownloadOnlineSourcesHelper implements DownloadSourcesEvent{
private void setProgress(double current) { private void setProgress(double current) {
progressbar.setValue((int) 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)); progressbar.paintImmediately(new Rectangle(0, 0, LOAD_WIDTH, INCIDENT_HEIGHT * 2));
} }

Loading…
Cancel
Save