List of usage examples for java.awt Color RED
Color RED
To view the source code for java.awt Color RED.
Click Source Link
From source file:Main.java
public static void main(String[] args) { Color myColor = Color.RED; System.out.println(Arrays.toString(myColor.getColorComponents(null))); }
From source file:Main.java
public static void main(String[] args) { Color myColor = Color.RED; System.out.println(Arrays.toString(myColor.getComponents(null))); }
From source file:Main.java
public static void main(String[] args) { Color myColor = Color.RED; System.out.println(Arrays.toString(myColor.getRGBComponents(null))); }
From source file:Main.java
public static void main(String[] argv) { Color initialColor = Color.red; Color newColor = JColorChooser.showDialog(null, "Dialog Title", initialColor); }
From source file:Main.java
public static void main(String[] args) { Color myColor = Color.RED; System.out.println(/*from w w w .j a v a 2 s . c om*/ Arrays.toString(myColor.getColorComponents(ColorSpace.getInstance(ColorSpace.CS_CIEXYZ), null))); }
From source file:Main.java
public static void main(String[] args) { Color myColor = Color.RED; System.out.println(//ww w . ja va 2 s . co m Arrays.toString(myColor.getComponents(ColorSpace.getInstance(ColorSpace.CS_CIEXYZ), null))); }
From source file:Main.java
public static void main(String[] args) { Color myColor = Color.RED; JLabel label = new JLabel("First Name"); label.setForeground(myColor.darker()); JFrame frame = new JFrame(); frame.add(label);/*from ww w . j a v a 2 s . c o m*/ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setBounds(20, 20, 500, 500); frame.setVisible(true); }
From source file:Main.java
public static void main(String[] args) { Color myColor = Color.RED; JLabel label = new JLabel("First Name"); label.setForeground(myColor.brighter()); JFrame frame = new JFrame(); frame.add(label);/*from ww w. j a va 2 s. co m*/ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setBounds(20, 20, 500, 500); frame.setVisible(true); }
From source file:Main.java
public static void main(String[] args) { System.setProperty("myColor", "0XFFFFFF"); Color myColor = Color.getColor("myColorNew", Color.RED); System.out.println(myColor);// w ww. j av a 2 s . c o m }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); table.setGridColor(Color.red); }