The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002



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.


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.


Sponsored Links

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