How do we save the modifications made to a HTML file using JEditorPane?

Sandip Chitale

// Say - editorPane is your JEditorPane
try {
  FileWriter writer = new FileWriter("file.html");
  EditorKit kit = editorPane.getEditorKit();


} catch (Exception e) { //use better exception catching here

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.