// Basic3 GUI // a few more options import javax.swing.*; import java.awt.*; // need for Point and Color classes public class Basic3 { public static void main(String[] args) { // Create window: JFrame f = new JFrame("Basic Test!"); // Set size of 500x500 pixels^2: f.setSize(500,500); // Move window 100 pixels W and 100 pixels S: f.setLocation(new Point(100,100)); // Make the background blue: f.setBackground(Color.blue); // Show the window f.setVisible(true); // Quit Java after closing the window: f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }