import java.awt.*; import javax.swing.*; public class Frame1 { public static void main(String[] args) { JFrame f = new JFrame("My First GUI"); f.setSize(400,300); f.setVisible(true); } }