From 2202e4f29a90e65c507a8d941ce14e42af49b658 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 19 May 2005 17:49:08 +0000 Subject: [PATCH] Copied sequences title altered --- src/jalview/appletgui/AlignFrame.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/jalview/appletgui/AlignFrame.java b/src/jalview/appletgui/AlignFrame.java index e73854f..44b163b 100755 --- a/src/jalview/appletgui/AlignFrame.java +++ b/src/jalview/appletgui/AlignFrame.java @@ -273,7 +273,12 @@ public class AlignFrame extends GAlignFrame newSeqs[i] = (SequenceI)seqs.elementAt(i); AlignFrame af = new AlignFrame(new Alignment(newSeqs), applet); - jalview.bin.JalviewLite.addFrame(af, "Copied sequences", NEW_WINDOW_WIDTH, NEW_WINDOW_HEIGHT); + String newtitle = new String("Copied sequences"); + if( getTitle().startsWith("Copied sequences")) + newtitle = getTitle(); + else + newtitle = newtitle.concat("- from "+getTitle()); + jalview.bin.JalviewLite.addFrame(af, newtitle, NEW_WINDOW_WIDTH, NEW_WINDOW_HEIGHT); } else { @@ -986,7 +991,7 @@ public class AlignFrame extends GAlignFrame int y=20, x=7; g.setColor(Color.black); g.setFont(new Font("Helvetica", Font.BOLD, 14)); - g.drawString("JalView 2005", 200,y+=fh); + g.drawString("JalView - Release 2.0", 200,y+=fh); g.setFont(new Font("Helvetica", Font.PLAIN, 12)); g.drawString("Authors: Michele Clamp, James Cuff, Steve Searle, Andrew Waterhouse, Jim Procter & Geoff Barton.",x,y+=fh*2); g.drawString("Current development managed by Andrew Waterhouse; Barton Group, University of Dundee.",x,y+=fh); @@ -997,7 +1002,7 @@ public class AlignFrame extends GAlignFrame } Frame frame = new Frame(); frame.add(new AboutPanel()); - jalview.bin.JalviewLite.addFrame(frame, "Jalview 2005", 580,200); + jalview.bin.JalviewLite.addFrame(frame, "Jalview", 580,200); -- 1.7.10.2