From 96345c99abf25d9a4e84499159f54112066da305 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 22 Feb 2018 15:14:46 +0000 Subject: [PATCH] JAL-984 ID width adjuster needs to be white ! --- src/jalview/appletgui/IdwidthAdjuster.java | 3 ++- src/jalview/gui/IdwidthAdjuster.java | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/jalview/appletgui/IdwidthAdjuster.java b/src/jalview/appletgui/IdwidthAdjuster.java index 51faa87..2602268 100755 --- a/src/jalview/appletgui/IdwidthAdjuster.java +++ b/src/jalview/appletgui/IdwidthAdjuster.java @@ -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); } diff --git a/src/jalview/gui/IdwidthAdjuster.java b/src/jalview/gui/IdwidthAdjuster.java index c6d5d2a..0cffc3b 100755 --- a/src/jalview/gui/IdwidthAdjuster.java +++ b/src/jalview/gui/IdwidthAdjuster.java @@ -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)); -- 1.7.10.2