The moose likes Swing / AWT / SWT / JFace and the fly likes How to clear contents of HTMLDocument in JEditorPane??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "How to clear contents of HTMLDocument in JEditorPane???" Watch "How to clear contents of HTMLDocument in JEditorPane???" New topic
Author

How to clear contents of HTMLDocument in JEditorPane???

Manohar Vempati
Greenhorn

Joined: Nov 26, 2001
Posts: 7
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


Manohar.L.Vempati
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4120

call setText( "" ) on your JEditorPane...

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
 
subject: How to clear contents of HTMLDocument in JEditorPane???
 
Threads others viewed
clearing a text area
reading pdf,ppt,doc in swing app
Saving Contents of a JEditorPane
Using html tags
Saving the contents of JEditorPane
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com