Java tutorial
//package com.java2s; import java.awt.Dimension; import java.awt.Frame; import java.awt.Toolkit; public class Main { public static void fullWindow(Frame frame) { // Get the size of the screen Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); frame.setSize(dim.width, dim.height); // Move the window frame.setLocation(0, 0); } }