how to set color java code example
Example 1: set color of text for jlabel
JLabel title = new JLabel("Want a Raise?", JLabel.CENTER);
title.setForeground(Color.white);
Example 2: what is graphics default color java
Graphics g;
g.getColor();
JLabel title = new JLabel("Want a Raise?", JLabel.CENTER);
title.setForeground(Color.white);
Graphics g;
g.getColor();