title: JLabel doesn't show image
body: <p>I'm not sure where the problem is. Is it in the path? The image doesn't show although there are no errors at all in the code syntax. Should I provide the whole path or just place the image in the directory and call its name? Thank you.</p>
  
  <pre><code>public class NetworkingGame {
  
  private JFrame jfrm;
  
  NetworkingGame(){
      jfrm = new JFrame("Angry Painters");
      jfrm.setSize(800, 480);
      jfrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      jfrm.setVisible(true);
  
  }// end of constructor
  
  public void ImageLoading(){
      ImageIcon i = new ImageIcon("C:/Users/TOSHIBA/Documents/NetBeansProjects/NetworkingGame/build/classes/angry-painters.jpeg");
      JLabel jl = new JLabel(i);
      jfrm.add(jl);
  }
  
  public static void main(String[] args) throws Exception{
  
      SwingUtilities.invokeLater(new Runnable(){
  
          @Override
          public void run(){
  
              NetworkingGame ng = new NetworkingGame();
              ng.ImageLoading();
          } // end of run method
      }); // end of Runnable
  
     }//end of main method
  }//end of class NetworkingGame
  </code></pre>