title: Why isn`t the image shown here?
body: <p>I want to display an image on a JFrame trough a JLabel but the only thing that is being displayed is the JFrame. And please say it in noob :)
  Here is the code:</p>
  
  <pre><code>import javax.swing.*; 
  import java.awt.*;
  
  public class Swing extends JFrame{
      public JLabel label;
      public ImageIcon image;
  
      public Swing() {
          setLayout(new FlowLayout());
          image = new ImageIcon ("image.png");
          label = new JLabel (image);
          add(label);
      }
      public static void main (String [] args) {
          System.out.println("some text.");
          JFrame frame = new JFrame();
  
          frame.setVisible(true);
          frame.setSize(2300, 1717);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setLocation(300, 100);
          frame.setTitle("title");
  
          frame.requestFocus();
          frame.addKeyListener(new KeyHandler());     
      }
  
  
   }
  </code></pre>