// Tests various menu options import java.awt.Toolkit; import java.awt.Dimension; public class MenuTest { public static void main(String[] args) { window = new MenuTestFrame("Menu Test"); // Create the app window Toolkit theKit = window.getToolkit(); // Get the window toolkit Dimension wndSize = theKit.getScreenSize(); // Get screen size // Set the position to screen center & size to half screen size window.setBounds(wndSize.width/4, wndSize.height/4, // Position wndSize.width/2, wndSize.height/2); // Size window.setVisible(true); } private static MenuTestFrame window; // The application window }