I am currently trying to create a full-screen window in Java running on Linux. The fact is that I can make full-screen JFrame, but if the frame is set without decoration, it cannot return to the original window again. If the windows are decorated, I can return to the original size.
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice gs = ge.getDefaultScreenDevice();
...
f.setUndecorated(true);
gs.setFullScreenWindow(f);
gs.setFullScreenWindow(null);
Any idea how to solve this?
mundu source
share