set color of text for jlabel

Java
JLabel title = new JLabel("Want a Raise?", JLabel.CENTER);
title.setForeground(Color.white);

Source

Also in Java: