Home > Default > How to load file.html in  JEditorPane

How to load file.html in  JEditorPane

November 30Hits:0
Advertisement
Hello
how to display HTML file including images in JEditorPane
the file is on local system
thanks

Answers

This is how I read contents of a file and put it into my JEditorPane.
I don't know if it will incliude images or not, but it might.
      try {
           editorPane1.read(new FileReader(getFile),null);
         catch(IOException e)
                   e.printStackTrace();
     

Read other 3 answers

Tags:

Related Articles

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.565 s.