All pastes #1593722 Raw Edit

FaceViewer

public java v1 · immutable
#1593722 ·published 2009-10-05 04:08 UTC
rendered paste body
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);    }}