From: amwaterhouse Date: Tue, 4 Apr 2006 09:38:11 +0000 (+0000) Subject: set current tree once the tree is prepared X-Git-Tag: Release_2_08~74 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9bbb5a6c6054d67fb98dba12566e7c2059ced62f;p=jalview.git set current tree once the tree is prepared --- diff --git a/src/jalview/appletgui/TreePanel.java b/src/jalview/appletgui/TreePanel.java index 61b0546..6d17918 100755 --- a/src/jalview/appletgui/TreePanel.java +++ b/src/jalview/appletgui/TreePanel.java @@ -37,6 +37,7 @@ public class TreePanel extends Frame implements ActionListener, ItemListener int end; TreeCanvas treeCanvas; NJTree tree; + AlignViewport av; public NJTree getTree() { @@ -99,6 +100,7 @@ public class TreePanel extends Frame implements ActionListener, ItemListener String pwtype, int s, int e, NewickFile newTree) { + this.av = av; this.type = type; this.pwtype = pwtype; @@ -149,6 +151,8 @@ public class TreePanel extends Frame implements ActionListener, ItemListener treeCanvas.repaint(); + av.setCurrentTree(tree); + } }