import javax.swing.*; //needed to use swing components e.g. JFrame
public class FirstApplication extends JFrame {
    public FirstApplication(String title) {
    	super(title); 		// Set the title of the frame
    	setDefaultCloseOperation(EXIT_ON_CLOSE); // allow window to close
        setSize(300, 100);	// Set the size of the window
    }
	public static void main(String args[]) {		
		FirstApplication frame =  new FirstApplication("FirstApplication Example");
        frame.setVisible(true);  // Show the window now
    }
}