public static Color darken(Color color) {
    return new Color(Math.max((int)(color.getRed()  *FACTOR), 0),
                     Math.max((int)(color.getGreen()*FACTOR), 0),
                     Math.max((int)(color.getBlue() *FACTOR), 0));
  }
public static Color darken(Color color)