The Artima Developer Community
Sponsored Link

Java Answers Forum
How can I change the colour of part of TextArea?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jaroslav

Posts: 1
Nickname: jaroslav
Registered: Dec, 2002

How can I change the colour of part of TextArea? Posted: Dec 31, 2002 1:38 AM
Reply to this message Reply
Advertisement
set Foreground change colour of whole text.
I need only some part of ta green.

ta.setFont(new Font("TimesRoman", Font.PLAIN, 10));
ta.setForeground(Color.green);
ta.append(sii + "\n");

Many thanks.

Topic: Problem with Applet Previous Topic   Next Topic Topic: print

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use