Hi,
You have to create labels out of the text and set their foreground color to the desired color and then add them to the content pane.
import java.awt.*;
import javax.swing.*;
static String someText = "Java";
JLabel label = new JLabel(someText);
label.setForeground(Color.red);
getContentPane().add(label);
It depends upon the layout manager where you add the created label.I have put it in the content pane.
Regards,
vikalp_setya@rediffmail.com