Answers for "set fullscreen jframe"

0

set jframe fullscreen

GraphicsEnvironment graphics = 
		GraphicsEnvironment.getLocalGraphicsEnvironment();
        
GraphicsDevice device = graphics.getDefaultScreenDevice();
JFrame frame = new JFrame("Fullscreen");
device.setFullScreenWindow(frame);
Posted by: Guest on August-05-2020
0

how to make JFrame full screen

If you have extended the class to JFrame then -
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
IF not then - 
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
Posted by: Guest on April-01-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language