FaceViewer.java.html

  1  import javax.swing.JFrame;
  2  
  3  public class FaceViewer
  4  {
  5     public static void main(String[] args)
  6     {
  7        JFrame frame = new JFrame();
  8        frame.setSize(150, 250);
  9        frame.setTitle("An Alien Face");
 10        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 11  
 12        FaceComponent component = new FaceComponent();
 13        frame.add(component);
 14  
 15        frame.setVisible(true);
 16     }
 17  }