title: why is my japplet displays gray block in browser after adding an image icon?
body: <p>My japplet is able to run normally in NetBeans environment, but shows only a gray block screen in my browser (Chrome, IE). But when I removed all the image icons from my japplet, it runs normally in the browser and I have totally no idea why. Need some guidance for this.</p>
  
  <p>My japplet class content</p>
  
  <pre><code>public void init() 
  {
      try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); }
  
      catch(Exception ex) { System.out.println(ex); }       
  
      try 
      {
          java.awt.EventQueue.invokeAndWait(new Runnable() { public void run() { initComponents(); } });
      } 
      catch (Exception ex) { ex.printStackTrace(); }
  
      jlbReg.setIcon(new ImageIcon(getClass().getResource("/MyIcons/icon1.png"))); 
      jlbAnn.setIcon(new ImageIcon(getClass().getResource("/MyIcons/icon2.png")));
      jlbSubmit.setIcon(new ImageIcon(getClass().getResource("/MyIcons/icon3.png")));
      jlbForum.setIcon(new ImageIcon(getClass().getResource("/MyIcons/icon4.png")));
  }
  </code></pre>
  
  <p>My html content </p>
  
  <pre><code>&lt;APPLET codebase="classes" code="MyJApplet.class" width=1150  height=1000&gt;&lt;/APPLET&gt;
  </code></pre>