public static Color deriveWithAlpha(Color color,int alpha){
  return new Color(color.getRed(),color.getGreen(),color.getBlue(),alpha);
}

public static Color deriveWithAlpha ( Color color , int alpha ) { return new Color ( color . getRed ( ) , color . getGreen ( ) , color . getBlue ( ) , alpha ) ; }
creates a new color with the same color components but a different alpha value .
