// EmptyFrame.java // Taken from Core Java, vol.1, by Horstmann & Cornell import javax.swing.*; class MyFrame extends JFrame { public MyFrame() { setTitle("Keng's Empty Frame"); setSize(300,200); // default size is 0,0 setLocation(10,200); // default is 0,0 (top left corner) } } public class EmptyFrame { public static void main(String[] args) { JFrame f = new MyFrame(); f.show(); } }