The Artima Developer Community
Sponsored Link

Java Answers Forum
DefaultStyledDocument blues....

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
Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

DefaultStyledDocument blues.... Posted: Apr 24, 2002 6:51 PM
Reply to this message Reply
Advertisement
I am using DefaultStyledDocument class for a small application which allows users to edit a text file. Now the problem I am facing is, if the user types a particular word, say, "Internet", i want to display it using red color.

I added a document listener to listen to the document events but found implementations of the DocumentListener may not mutate the source of the event (i.e. the associated Document) in the documentation of DocumentListener.

How do I go about changing the color of the typed text?

Topic: seeking solution for this question Previous Topic   Next Topic Topic: getAttribute/setAttribute in jsp

Sponsored Links



Google
  Web Artima.com   

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