How to change the Color of a string using swings/awt concept.

Hi friends,

How can i change the Color of a string.

For ex:

If i have a string "Welcome to the Java World",I want one particular Color for the string "Welcome to the" and a different Color to the "Java World" string.

So please kindly help me out to resolve this issue.

Thanking u in advance.

[328 byte] By [chandrashekar9274a] at [2007-11-27 9:38:59]
# 1
liquid paper (lightly applied) might do the job.
Michael_Dunna at 2007-7-12 23:13:19 > top of Java-index,Desktop,Core GUI APIs...
# 2
try use html tags
dayanandabva at 2007-7-12 23:13:19 > top of Java-index,Desktop,Core GUI APIs...
# 3
"Text Component Features" http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html
camickra at 2007-7-12 23:13:19 > top of Java-index,Desktop,Core GUI APIs...