get jlabel background color 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: how to set frame colo in java
getContentPane().setBackground(Color.YELLOW); //Whatever color