title: Why JEditorPane does not show image written in HTML?
body: <p>So my HTML is this.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;body &gt;
  &lt;h1 style="background-color:lightblue"&gt;This is a h1&lt;/h1&gt;
  &lt;img src="haha.jpg" alt="W3Schools.com" width="104" height="142" &gt; 
  &lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is how I load the HTML:</p>
  
  <pre><code>JEditorPane je = new JEditorPane();
  je.setEditable(false);
  je.setContentType("text/html");
  FileReader fr = new FileReader("testPage.html");
  BufferedReader br = new BufferedReader(fr);
  String text = "";
  String inputLine = br.readLine();
  while(inputLine!=null){
      text += inputLine+"\n";
      inputLine=br.readLine();
  }
  je.setText(text);
  SwingNode sn = new SwingNode();
  sn.setContent(je);
  </code></pre>
  
  <p>The h1 part works perfectly, but the image part does not show up, which shows up in .html file. So I want to know if there is any way to make image in HTML show up? If <code>JEditorPane</code>  can't do it, what other component will show the html <strong>WITH</strong> images?</p>
  
  <p>Help Appreciated. </p>