JAL-2587 Made progress bar display before overview calc starts
authorkiramt <k.mourao@dundee.ac.uk>
Fri, 25 Aug 2017 07:03:52 +0000 (08:03 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Fri, 25 Aug 2017 07:03:52 +0000 (08:03 +0100)
src/jalview/gui/ProgressPanel.java
src/jalview/renderer/OverviewRenderer.java

index 71c5f8f..1f87838 100644 (file)
@@ -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);
index 0baf2ce..eac2745 100644 (file)
@@ -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)