title: frame.add (label, JFrame.TOP) error
body: <p>i get an error of Exception in thread "main" java.lang.IllegalArgumentException: illegal component position. It works when i do frame.add(label, JFrame.CENTER) but when i change it
  it dosnt work.</p>
  
  <pre><code>package com.java;
  
  import javax.swing.*;
  
  import sun.audio.*;
  
  import java.awt.*;
  
  public class PlayClip extends JFrame{
  
  public static void frame(){
      JFrame frame = new JFrame("COLLIN");
      frame.setSize(1086, 1200);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      ImageIcon image = new ImageIcon("C:MYFILE");
      JLabel label = new JLabel(image);frame.setResizable(false);
      frame.add(label, JLabel.BOTTOM);
      frame.setVisible(true);
  }
  
  public static void main(String[] args){
      frame();
  }
  }
  </code></pre>