The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002

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:

Cannot change Bold to Normal in HTMLEditorKit

Posted by Suresh on February 18, 2002 at 2:04 AM

We have a JTextPane based HTML editor which use HTMLEditorKit. Once we mark some text as bold the HTML formed contains the .... tag correctly. But opening the document next time, even if we remove the bold attribute from characters and even if they appear as Normal on screen of JTextPane... the HTML formed still contains the ... tags. Those are not removed. So text once turned bold cannot be turned back to Normal.




Replies:

Sponsored Links



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