// Basic GUI import javax.swing.*; public class Basic { public static void main(String[] args) { // Create window: JFrame f = new JFrame("Basic Test!"); // Set 500x500 pixels^2: f.setSize(500,500); // Show the window: f.setVisible(true); // Quit Java after closing the window: f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }