From: kiramt Date: Fri, 25 Aug 2017 07:03:52 +0000 (+0100) Subject: JAL-2587 Made progress bar display before overview calc starts X-Git-Tag: Release_2_10_2b1~4^2^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0c4b75bb2b3973218c9aa86f9bec19cd3dc5dcd5;p=jalview.git JAL-2587 Made progress bar display before overview calc starts --- diff --git a/src/jalview/gui/ProgressPanel.java b/src/jalview/gui/ProgressPanel.java index 71c5f8f..1f87838 100644 --- a/src/jalview/gui/ProgressPanel.java +++ b/src/jalview/gui/ProgressPanel.java @@ -125,7 +125,7 @@ public class ProgressPanel extends JPanel implements RendererListenerI labelLayout.show(labelPanel, VISIBLE); barLayout.show(barPanel, VISIBLE); } - else if (progress >= MAXVALUE) + if (progress >= MAXVALUE) { labelLayout.show(labelPanel, INVISIBLE); barLayout.show(barPanel, INVISIBLE); diff --git a/src/jalview/renderer/OverviewRenderer.java b/src/jalview/renderer/OverviewRenderer.java index 0baf2ce..eac2745 100644 --- a/src/jalview/renderer/OverviewRenderer.java +++ b/src/jalview/renderer/OverviewRenderer.java @@ -91,6 +91,8 @@ public class OverviewRenderer int pixelRow = 0; int alignmentHeight = miniMe.getHeight() - graphHeight; + changeSupport.firePropertyChange(UPDATE, -1, 0); + for (int alignmentRow : rows) { if (redraw)