title: change size and shape of icon in jframe
body: <p>I have created a jframe in java with following code . this is creating the custom icon of the image passed in the given url . but its size is very small can i change the shape of it from rectangular to circular pls help</p>
  
  <pre><code> class newframe extends JFrame 
    {
  
   Container cp;
     newframe()
     {
        cp=this.getContentPane();
        cp.setLayout(null);
      }
  
      public static void main(String args[])
      {
        newframe frm= new newframe(); 
  
        frm.setbounds(0,0,1000,800);
        frm.setVisible(true);
        ImageIcon im1= new ImageIcon("path upto image");
        frm.setIconImage(im1.getImage());
       }
      }
  </code></pre>