The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Anyone know how to use StyleSheet class with JTextEditor?

Posted by Tommy on October 25, 2001 at 5:50 PM

Now I am setting the content type of my JTextEditor as "text/html".
And I would like to set the font of that JTextEditor to be "xxx", where xxx is a font name.
Also, I would like to set the background of the JTextEditor to be a particular color.
Anyone know how to use StyleSheet class to set it? or if there is another way to do this easily?

Many Thanks,
Tommy




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us