Copied sequences title altered
authoramwaterhouse <Andrew Waterhouse>
Thu, 19 May 2005 17:49:08 +0000 (17:49 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 19 May 2005 17:49:08 +0000 (17:49 +0000)
src/jalview/appletgui/AlignFrame.java

index e73854f..44b163b 100755 (executable)
@@ -273,7 +273,12 @@ public class AlignFrame extends GAlignFrame
          newSeqs[i] = (SequenceI)seqs.elementAt(i);\r
 \r
         AlignFrame af = new AlignFrame(new Alignment(newSeqs), applet);\r
-        jalview.bin.JalviewLite.addFrame(af, "Copied sequences", NEW_WINDOW_WIDTH, NEW_WINDOW_HEIGHT);\r
+        String newtitle = new String("Copied sequences");\r
+        if( getTitle().startsWith("Copied sequences"))\r
+         newtitle = getTitle();\r
+       else\r
+         newtitle = newtitle.concat("- from "+getTitle());\r
+        jalview.bin.JalviewLite.addFrame(af, newtitle, NEW_WINDOW_WIDTH, NEW_WINDOW_HEIGHT);\r
       }\r
       else\r
       {\r
@@ -986,7 +991,7 @@ public class AlignFrame extends GAlignFrame
         int y=20, x=7;\r
         g.setColor(Color.black);\r
         g.setFont(new Font("Helvetica", Font.BOLD, 14));\r
-        g.drawString("JalView 2005", 200,y+=fh);\r
+        g.drawString("JalView - Release 2.0", 200,y+=fh);\r
         g.setFont(new Font("Helvetica", Font.PLAIN, 12));\r
         g.drawString("Authors:  Michele Clamp, James Cuff, Steve Searle, Andrew Waterhouse, Jim Procter & Geoff Barton.",x,y+=fh*2);\r
         g.drawString("Current development managed by Andrew Waterhouse; Barton Group, University of Dundee.",x,y+=fh);\r
@@ -997,7 +1002,7 @@ public class AlignFrame extends GAlignFrame
     }\r
     Frame frame = new Frame();\r
     frame.add(new AboutPanel());\r
-    jalview.bin.JalviewLite.addFrame(frame, "Jalview 2005", 580,200);\r
+    jalview.bin.JalviewLite.addFrame(frame, "Jalview", 580,200);\r
 \r
 \r
 \r