From: amwaterhouse Date: Mon, 29 Jan 2007 17:42:02 +0000 (+0000) Subject: Dont clear graphics g before drawing the image X-Git-Tag: Release_2_3~419 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b61f2d9b571c4e4ab3285257c6ddbd39da61fa05;p=jalview.git Dont clear graphics g before drawing the image --- diff --git a/src/jalview/appletgui/AnnotationPanel.java b/src/jalview/appletgui/AnnotationPanel.java index d4024ba..01f2c23 100755 --- a/src/jalview/appletgui/AnnotationPanel.java +++ b/src/jalview/appletgui/AnnotationPanel.java @@ -196,13 +196,13 @@ public class AnnotationPanel if(av.hasHiddenColumns) res = av.getColumnSelection().adjustForHiddenColumns(res); - if (row > -1 && res < aa[row].annotations.length && aa[row].annotations[res] != null) - { - StringBuffer text = new StringBuffer("Sequence position " + (res + 1) + - " " + - aa[row].annotations[res].description); - ap.alignFrame.statusBar.setText(text.toString()); - } + if (row > -1 && res < aa[row].annotations.length && aa[row].annotations[res] != null) + { + StringBuffer text = new StringBuffer("Sequence position " + (res + 1)); + if (aa[row].annotations[res].description != null) + text.append(" " + aa[row].annotations[res].description); + ap.alignFrame.statusBar.setText(text.toString()); + } } public void update(Graphics g) @@ -232,8 +232,6 @@ public class AnnotationPanel } drawComponent(gg, av.startRes, av.endRes + 1); - g.setColor(Color.white); - g.fillRect(0, 0, getSize().width, getSize().height); g.drawImage(image, 0, 0, this); }