Here you can find the source of transparent(final Color color, final int alpha)
public static Color transparent(final Color color, final int alpha)
//package com.java2s; //License from project: Open Source License import java.awt.Color; public class Main { public static Color transparent(final Color color, final int alpha) { return new Color(color.getRed(), color.getGreen(), color.getBlue(), alpha); }/*from w w w. j av a 2s .co m*/ }