JAL-984 ID width adjuster needs to be white !
authorJim Procter <jprocter@issues.jalview.org>
Thu, 22 Feb 2018 15:14:46 +0000 (15:14 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 22 Feb 2018 15:15:01 +0000 (15:15 +0000)
src/jalview/appletgui/IdwidthAdjuster.java
src/jalview/gui/IdwidthAdjuster.java

index 51faa87..2602268 100755 (executable)
@@ -20,6 +20,7 @@
  */
 package jalview.appletgui;
 
+import java.awt.Color;
 import java.awt.Cursor;
 import java.awt.Dimension;
 import java.awt.Panel;
@@ -40,7 +41,7 @@ public class IdwidthAdjuster extends Panel
   {
     setLayout(null);
     this.ap = ap;
-
+    setBackground(Color.WHITE);
     addMouseListener(this);
     addMouseMotionListener(this);
   }
index c6d5d2a..0cffc3b 100755 (executable)
@@ -22,6 +22,7 @@ package jalview.gui;
 
 import jalview.api.AlignViewportI;
 
+import java.awt.Color;
 import java.awt.Cursor;
 import java.awt.Graphics;
 import java.awt.event.MouseEvent;
@@ -54,7 +55,7 @@ public class IdwidthAdjuster extends JPanel
   public IdwidthAdjuster(AlignmentPanel ap)
   {
     this.ap = ap;
-
+    setBackground(Color.white);
     addMouseListener(this);
     addMouseMotionListener(this);
   }
@@ -181,6 +182,9 @@ public class IdwidthAdjuster extends JPanel
   @Override
   public void paintComponent(Graphics g)
   {
+    g.setColor(Color.white);
+    g.fillRect(0, 0, getWidth(), getHeight());
+
     if (active)
     {
         setCursor(Cursor.getPredefinedCursor(Cursor.W_RESIZE_CURSOR));