title: Display Image using html in JLabel
body: <p>I used the following way to convert an ImageIcon into a thumbnail :</p>
  
  <pre><code>ImageIcon im = new ImageIcon(url);
  Image image = im.getImage().getScaledInstance(80,100,Image.SCALE_DEFAULT);
  </code></pre>
  
  <p>Now I'm having problems when I try to display the Image in JLabel using html. Before converting the ImageIcon into Image, the following code was working fine:</p>
  
  <pre><code>JLabel label = new JLabel("&lt;html&gt;" + im);
  </code></pre>
  
  <p>But now when I try to do the same using the Image, it doesn't work. Any idea of how to display the resulting Image using html in a JLabel?</p>