Format changes
[jalview.git] / src / jalview / gui / TreePanel.java
index 389d82d..f4543ed 100755 (executable)
@@ -120,6 +120,8 @@ public class TreePanel extends GTreePanel
       treeCanvas = new TreeCanvas(this, ap, scrollPane);
       scrollPane.setViewportView(treeCanvas);
 
+      PaintRefresher.Register(this, ap.av.getSequenceSetId());
+
       buildAssociatedViewMenu();
 
       av.addPropertyChangeListener(new java.beans.PropertyChangeListener()
@@ -189,7 +191,6 @@ public class TreePanel extends GTreePanel
                   treeCanvas.applyToAllViews = false;
                   treeCanvas.ap = ap;
                   treeCanvas.av = ap.av;
-                  PaintRefresher.RemoveComponent(thisTreePanel);
                   PaintRefresher.Register(thisTreePanel, ap.av.getSequenceSetId());
                 }
               });
@@ -197,9 +198,9 @@ public class TreePanel extends GTreePanel
           associateLeavesMenu.add(item);
       }
 
-      final JRadioButtonMenuItem itemf =
-          new JRadioButtonMenuItem("All Views", treeCanvas.applyToAllViews);
+      final JRadioButtonMenuItem itemf = new JRadioButtonMenuItem("All Views");
       buttonGroup.add(itemf);
+      itemf.setSelected(treeCanvas.applyToAllViews);
       itemf.addActionListener(new ActionListener()
       {
         public void actionPerformed(ActionEvent evt)