// Test the JFrame class, which produces a Java window. // Later we will see how we can use inheritance to // customize this window. import javax.swing.JFrame; public class TestJFrame { public static void main(String[ ] argv) { // Create and configure JFrame window. JFrame window = new JFrame("Test JFrame Class"); window.setSize(300, 200); window.setVisible(true); // Print information about JFrame window. System.out.println("visible == " + window.isVisible( )); System.out.println("height == " + window.getHeight( )); System.out.println("title == " + window.getTitle( )); System.out.println("width == " + window.getWidth( )); } }