improved parameter set store/save/rename logic and debugged parameter/option display
[jalview.git] / src / jalview / gui / TreeCanvas.java
index 028552c..c2b9b7f 100755 (executable)
@@ -864,6 +864,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
 
   void colourGroups()
   {
+    AlignmentPanel[] aps = getAssociatedPanels();
     for (int i = 0; i < tree.getGroups().size(); i++)
     {
       Color col = new Color((int) (Math.random() * 255), (int) (Math
@@ -912,7 +913,6 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
 
       sg.setName("JTreeGroup:" + sg.hashCode());
       sg.setIdColour(col);
-      AlignmentPanel[] aps = getAssociatedPanels();
       for (int a = 0; a < aps.length; a++)
       {
         if (aps[a].av.getGlobalColourScheme() != null
@@ -930,6 +930,11 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
         aps[a].av.alignment.addGroup(sg);
       }
     }
+    // notify the panel to redo any group specific stuff.
+    for (int a=0;a<aps.length;a++)
+    {
+      aps[a].updateAnnotation();
+    }
 
   }