import javax.swing.JFrame; public class GUITutorial { public static void main(String[] args) { TutorialFrame frame = new TutorialFrame(); // Create frame object frame.setTitle("Frame Title"); // Title of frame frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Frame will close if you click close button frame.setVisible(true); // Show the frame on the screen } }