forester as submodule with InternalFrame + start of distance conversion
[jalview.git] / src / jalview / gui / CalculationChooser.java
index 1192fc8..a3878d7 100644 (file)
@@ -64,6 +64,7 @@ import javax.swing.event.InternalFrameAdapter;
 import javax.swing.event.InternalFrameEvent;
 
 import org.forester.archaeopteryx.Archaeopteryx;
+import org.forester.archaeopteryx.MainFrame;
 import org.forester.phylogeny.Phylogeny;
 
 /**
@@ -486,8 +487,20 @@ public class CalculationChooser extends JPanel
 
       ArchaeopteryxTreeBuilder aptxTreeBuilder = new ArchaeopteryxTreeBuilder();
       Phylogeny aptxTree = aptxTreeBuilder.buildAptxTree(calculatedTree);
-      Archaeopteryx.createApplication(aptxTree);
-
+      MainFrame aptxFrame = Archaeopteryx.createApplication(aptxTree);
+
+      int width = 400;
+      int height = 550;
+      aptxFrame.setMinimumSize(new Dimension(width - 30, height - 50)); // doesn't
+                                                                        // work
+                                                                        // as it
+                                                                        // gets
+                                                                        // overridden
+                                                                        // during
+                                                                        // addInternalFrame?
+
+      Desktop.addInternalFrame(aptxFrame, "Archaeopteryx Tree View",
+              width, height, true);
 
     }