Hi, I have made a program which has a JTextArea. Now I want to append text in different color in it. What i mean that if the first line is in black color than next will be in red color and next will be in blue color and so on... The problem is if I try to use setForeground it takes the last set color as this is the same component. Can somebody help me to achieve this. regards, Arun