java windowbuilder full screen

Java
JFrame frame = new JFrame();
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
Source

Also in Java: