Java tutorial
import javax.swing.JFrame; import javax.swing.UIManager; public class SimplestFrame { public static void main(String[] args) { JFrame aWindow = new JFrame("This is the Window Title"); aWindow.setBounds(50, 100, 300, 300); aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); aWindow.setVisible(true); } }