title: Java JPanel Coordinate System
body: <p>I am having trouble displaying this JLabel which contains an image at the specific coordinates (40,80).  Can anyone tell me what I am doing wrong here?</p>
  
  <pre><code>import java.awt.Image;
  import java.awt.Toolkit;
  import javax.swing.*;
  
  public class Window extends JFrame{
  //the pictures
  JLabel guy = new JLabel(new ImageIcon("tester.gif"));
  JPanel panel = new JPanel();
  
  Window(){
  
      super("WindowTitleThing");
      setSize(700,600);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  
      guy.setAlignmentX(40);
      guy.setAlignmentY(80);
  
      add(panel);
      panel.add(guy);
  
      setVisible(true);
  }
  }
  </code></pre>