import javax.swing.JFrame; /** * Creates a frame to view FaceComponent. */ public class FaceViewer { public static void main(String[] args) { //new JFrame JFrame frame = new JFrame(); //set size, 300x400 frame.setSize(800,600); //set title frame.setTitle("Multiple faces."); //set location frame.setLocation(600,200); //set the close operation frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //add FaceComponent to frame FaceComponent component = new FaceComponent(); frame.add(component); //set frame as visible frame.setVisible(true); } }