title: what is maximum size of image we can use with ImageIcon?
body: <p>I am setting image to Label and before that I am creating ImageIcon Object
  <code>ImageIcon icon=new ImageIcon(PathToImage,"Image");
    jLabel.setIcon(icon);</code>
  when image size exceeding 4 MB i am getting "<strong>java.lang.OutOfMemoryError: Java heap space</strong>"</p>
  
  <p>Is this error related to image size or something else?</p>
  
  <p>If it is by large image size then any possible workaround ?</p>