I hope I won’t post a recurring question, but I couldn’t find such a question, maybe I'm safe? Anyway...
For the applications that I create, I am going to open two applications at the same time (two separate processes and windows). The computer on which these applications will run will have multiple monitors. I want the first application / window to be displayed in full screen mode and occupy one of my monitors (the light part), and the second - full screen mode on the second monitor. If possible, I would like them to initialize this path.
I am currently making windows in full screen using this code:
this.setVisible(false);
this.setUndecorated(true);
this.setResizable(false);
myDevice = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
myDevice.setFullScreenWindow(this);
The class in which it is located is an extension of the JFrame class, and myDevice is of type "GraphicsDevice". Of course, it’s possible that there is a better way to make my window full screen so that I have two different applications in full screen on two different monitors.
If I were unclear in any way, tell me, and I will try to amend the clarifications!
source
share