*/
package jalview.appletgui;
+import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Panel;
{
setLayout(null);
this.ap = ap;
-
+ setBackground(Color.WHITE);
addMouseListener(this);
addMouseMotionListener(this);
}
import jalview.api.AlignViewportI;
+import java.awt.Color;
import java.awt.Cursor;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
public IdwidthAdjuster(AlignmentPanel ap)
{
this.ap = ap;
-
+ setBackground(Color.white);
addMouseListener(this);
addMouseMotionListener(this);
}
@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));