///////////////////////// Simple Frame Example //////////////////// /* This is an example of creating a simple frame. This merely displays * a frame with no components. */ import javax.swing.*; public class SimpleFrameExample extends JFrame { ///////////////// Constructor method ///////////////////////////////// public SimpleFrameExample(){ super("Simple Listener Example"); //Displays the name of the frame setSize(300,200); // x,y demensions of the frame in pixels // Closes the frame when the X at the top right corner is clicked setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); //Displays the frame } public static void main(String[] arguments) { //Crates an instance of the frame SimpleFrameExample myFrameSetup = new SimpleFrameExample(); } }