How? I read about Exclusive Mode API and there is such code:
GraphicsDevice myDevice;
Window myWindow;
try {
myDevice.setFullScreenWindow(myWindow);
...
} finally {
myDevice.setFullScreenWindow(null);
}
But it doesn't work. Id like to set JFrame to full size. Could someone write me proper code to do this? It should be places in frame's constrcutor.
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
frame.setUndecorated(true);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.