java fullscreen jframe

Java
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
Source

Also in Java: