Back to gray line
authoramwaterhouse <Andrew Waterhouse>
Fri, 28 Apr 2006 13:45:40 +0000 (13:45 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 28 Apr 2006 13:45:40 +0000 (13:45 +0000)
src/jalview/gui/AnnotationPanel.java

index a0405da..8ee0729 100755 (executable)
@@ -548,6 +548,9 @@ public class AnnotationPanel extends JPanel implements MouseListener,
      */\r
     public void paintComponent(Graphics g)\r
     {\r
+      g.setColor(Color.white);\r
+      g.fillRect(0, 0, getWidth(), getHeight());\r
+\r
       if(image!=null)\r
       {if (fastPaint\r
             || (getVisibleRect().width != g.getClipBounds().width)\r
@@ -891,7 +894,6 @@ public class AnnotationPanel extends JPanel implements MouseListener,
                       }, 3);\r
                     }\r
                     else\r
-                      g.setColor(Color.gray);\r
                       g.fillRect(lastSSX, y + 4 + iconOffset,\r
                                  x - lastSSX, 7);\r
 \r
@@ -899,7 +901,7 @@ public class AnnotationPanel extends JPanel implements MouseListener,
 \r
 \r
                 default:\r
-                    g.setColor(Color.ORANGE);\r
+                    g.setColor(Color.gray);\r
                     if(!av.wrapAlignment || endRes==av.endRes)\r
                       g.fillRect(lastSSX, y + 6 + iconOffset, x - lastSSX, 2);\r
 \r