title: JAVA Showing Image -GUI
body: <p>I'm trying to make a simple GUI using JAVA
  no image is shown</p>
  
  <pre><code>import java.awt.*;
  import java.awt.event.*;
  import java.awt.image.BufferedImage;
  import java.io.*;
  import javax.swing.*;
  import javax.imageio.*;
  
  public class EmiloLadderSnack {
      public JFrame frame=new JFrame("EmiloLadderSnack");
      public Image img;
      public Graphics g;
      public EmiloLadderSnack()
      {
          frame.setBounds(0, 0, Toolkit.getDefaultToolkit().getScreenSize().width, Toolkit.getDefaultToolkit().getScreenSize().height);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setVisible(true);
          try
          {
              img= ImageIO.read(new File("/media/01CCE00FA6888D80/Achieve/Eclipse/EmiloLadderSnack/src/photo.jpg"));
              g.drawImage(img, 50, 50, null);
          }
          catch(Exception e)
          {
              System.out.println(e.toString());
          }
      }
  
      public static void main(String args[])
      {
          new EmiloLadderSnack();
      }
  }
  </code></pre>
  
  <p>please help me to show an image in my simple GUI using JAVA
  I'm using Eclipse</p>