Cut and paste changed
authoramwaterhouse <Andrew Waterhouse>
Thu, 2 Jun 2005 11:06:56 +0000 (11:06 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 2 Jun 2005 11:06:56 +0000 (11:06 +0000)
src/jalview/gui/TreePanel.java

index 78bef80..fd688e6 100755 (executable)
@@ -120,8 +120,6 @@ public class TreePanel extends GTreePanel
     public void textbox_actionPerformed(ActionEvent e)\r
     {\r
       CutAndPasteTransfer cap = new CutAndPasteTransfer();\r
-      JInternalFrame frame = new JInternalFrame();\r
-      frame.setContentPane(cap);\r
 \r
       StringBuffer buffer = new StringBuffer();\r
 \r
@@ -135,7 +133,7 @@ public class TreePanel extends GTreePanel
       else\r
         buffer.append("PID");\r
 \r
-      Desktop.addInternalFrame(frame,buffer.toString(), 500, 100);\r
+      Desktop.addInternalFrame(cap,buffer.toString(), 500, 100);\r
       jalview.io.NewickFile fout = new jalview.io.NewickFile(tree.getTopNode());\r
       cap.setText(  fout.print(false,true) );\r
 \r