• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to clear contents of HTMLDocument in JEditorPane???

 
Manohar Vempati
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me....

How to clear the contents in JEditorPane? The content type for is text/html.The EditorKit I'm using is HTMLEditorKit.Bartenders please help... this is real urgent.
Thanx in advance
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
call setText( "" ) on your JEditorPane...

-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!