Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

partial coloring of texts in the awt

843807Feb 3 2003 — edited Feb 10 2003
Hi,

I'm working on project in which I use a message window (kinda like a chat window).
What I would like to do is display a special kind of messages in a different color so that they stand appart from the normal messages. I tried to play with setforeground but that function changes the whole text in the window instead of just the "special" text. I know quite a few things about the AWT but I fear that I'm still a newbie if it comes to colors and images. Is there anyone who knows a simple solution for this (in my opinion not so difficult) problem?
Any help is appreciated!

Rikko

PS. I am not able to use swing for this project. So any help should focus on the awt. :(
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2003
Added on Feb 3 2003
2 comments
81 views