import java.awt.*; import javax.swing.*; class TestFrame { public static void main(String[] args){ Frame frame = new Frame(); frame.setTitle("My first JFrame!"); /* Without show() the frame will not appear on screen! */ frame.setSize(200,400); frame.show(); } }