Color(int rgba, boolean hasalpha) constructor from Color has the following syntax.
public Color(int rgba, boolean hasalpha)
In the following code shows how to use Color.Color(int rgba, boolean hasalpha) constructor.
import java.awt.Color; /*from www . ja va2s . c o m*/ import javax.swing.JFrame; import javax.swing.JLabel; public class Main { public static void main(String[] args) { Color myColor = new Color(0XFFFFFFFF,true); JLabel label = new JLabel("First Name"); label.setForeground(myColor); JFrame frame = new JFrame(); frame.add(label); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setBounds(20,20, 500,500); frame.setVisible(true); } }