arrowColor = shadow;  arrowI.paintIconImpl(g, x, y, arrowColor);
{ g.setColor(Color.GRAY); g.fillPolygon(xPoints, yPoints, 3); g.setColor(Color.WHITE); g.drawLine(x1, y1, x2, y2); } g.setColor(saved); g.translate(-x, -y);
  public void paintTriangle(Graphics g, int x, int y, int size, int direction,                            boolean isEnabled)  {    Polygon arrow = getArrow(direction, size);    arrowIcon arrowI = new arrowIcon(arrow);    arrowI.setSize(size);    Color arrowColor;    if (isEnabled())      arrowColor = darkShadow;    else      arrowColor = shadow;    arrowI.paintIconImpl(g, x, y, arrowColor);  }