From 79d25fa4e3ae375321d8cc29906cff5a507cbab4 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 2 Feb 2005 16:14:01 +0000 Subject: [PATCH] Remove test image --- src/jalview/gui/AlignmentPanel.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index de6e057..775e954 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -360,9 +360,6 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene if( seqPanel.seqCanvas.getWidth() < pwidth-idWidth) pwidth = seqPanel.seqCanvas.getWidth() + idWidth; - Image image = createImage(pwidth, pheight); - pg = image.getGraphics(); - pg.setColor(Color.white); pg.fillRect(0,0,pwidth, pheight); pg.setFont( av.getFont() ); @@ -404,13 +401,6 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene seqPanel.seqCanvas.drawWrappedPanel(pg, pwidth-idWidth, pheight, pi*noChunksOnPage*chunkWidth); - javax.swing.JFrame frame = new javax.swing.JFrame(); - frame.setSize(image.getWidth(null), image.getHeight(null)); - frame.setVisible(true); - frame.getContentPane().setLayout(new BorderLayout()); - VPanel pan = new VPanel(image); - frame.getContentPane().add(pan, BorderLayout.CENTER); - frame.validate(); return Printable.NO_SUCH_PAGE;//.PAGE_EXISTS; } -- 1.7.10.2