Here you can find the source of fullScreenUsingMaximise(JFrame w)
private static void fullScreenUsingMaximise(JFrame w)
//package com.java2s; //License from project: Apache License import java.awt.Frame; import javax.swing.JFrame; public class Main { private static void fullScreenUsingMaximise(JFrame w) { w.setExtendedState(Frame.MAXIMIZED_BOTH); w.setAlwaysOnTop(true);//from w w w . ja v a2 s .co m } }