Here you can find the source of changeColorAlpha(@Nonnull Color color, int newAlpha)
public static Color changeColorAlpha(@Nonnull Color color, int newAlpha)
//package com.java2s; //License from project: LGPL import javax.annotation.Nonnull; import java.awt.*; public class Main { public static Color changeColorAlpha(@Nonnull Color color, int newAlpha) { return new Color(color.getRed(), color.getGreen(), color.getBlue(), newAlpha); }/*from www . ja v a 2 s .co m*/ }