jframe setsize fullscreen code example
Example: set jframe fullscreen
GraphicsEnvironment graphics =
GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice device = graphics.getDefaultScreenDevice();
JFrame frame = new JFrame("Fullscreen");
device.setFullScreenWindow(frame);