title: My JFrame Icon wont show even after I changed it, what am I doing wrong?
body: <p>The Image is already 20x20 and the code seems right to me please give me your feedback I'm a beginner so Im open to it</p>
  <pre><code>import java.awt.Color;
  import javax.swing.ImageIcon;
  import javax.swing.JFrame;
  public class Main {
  
      public static void main(String[] args) {
      
          //JFrame = a GUI to add components to
  
          
          JFrame frame = new JFrame(); //creates a Frame
          frame.setTitle(&quot;Insert Title&quot;); //sets Frame's title
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Exits Application
          frame.setResizable(false); //Prevents frame size being modified
          frame.setSize(420,420); //sets the x and y dimension of the Frame
          frame.setVisible(true); //Make Frame Visible
          
          ImageIcon image = new ImageIcon(&quot;penguinman.png&quot;); //Create ImageIcon
          frame.setIconImage(image.getImage()); //Change Icon of Frame
          frame.getContentPane().setBackground(Color.blue);
      }
  }
  </code></pre>