/* Author : Michael Robinson Program : guiFullScreen.java Purpose : To create a full size GUI Frame Updated : July 5th, 2099 */ import javax.swing.*; import java.awt.Toolkit; //This program will display a full screen GUI public class guiFullScreen { //private JFrame used on by this program private static JFrame frame; public static void createGuiFullScreen() { //create a new JFrame called frame frame = new JFrame( "Full Screen" ); //create Toolkit tk class which allows //the construction of a Full Screen GUI Toolkit tk = Toolkit.getDefaultToolkit(); //create a variable with the Width of the frame int xSize = ( (int) tk.getScreenSize().getWidth() ); //create a variable with the Height of the frame int ySize = ( (int) tk.getScreenSize().getHeight() ); //set the size of the full frame frame.setSize( xSize, ySize ); //make the frame visible frame.setVisible( true ); }//end public static void createGuiFullScreen() public static void main( String args[] ) { //creates and displays full screen GUI createGuiFullScreen(); }//end public static void main(String[] args) }//end public class GuiFullScreen