Java tutorial
//package com.java2s; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.JFrame; public class Main { public static void setFullScreen(JFrame component) { Dimension size = Toolkit.getDefaultToolkit().getScreenSize(); component.setSize(size); } }