I dont know exactly how to put a color on a string into the JTextPane?
JTextPane p1 = new JTextPane();
String x1 = " Hello ";
String x2 = " World ";
// How do I set the color of the 1st & 2nd String ?
// I want x1 to be in color red & x2 to be blue ?
Is it possible how ?