title: JFrame image display at frame resize
body: <p>I have this JFrame containing a children of JPanel wherein it displays the image which is declared in this manner.</p>
  
  <pre><code>BufferedImage image = ImageIO.read(filename);
  </code></pre>
  
  <p>The program displays the image properly. But the only thing is, it requires to resize the frame to display the image.</p>
  
  <p>Is there a possible way to display the image once the frame appears?</p>