I was using a full screen window to something similar to screensaver. Using the method here,
GraphicsEnvironment.getLocalGraphicsEnvironment()
.getDefaultScreenDevice()
.setFullScreenWindow(this);
But when the screen is locked, or the screensaver runs, and this screen is shown, this screen is shown on top. I can't get access to the login prompt. So the java frame is on top and I can do nothing. I have to restart the computer to get rid of this.
Since when the login screen comes, no other window gets mouse/keyboard input. My window exit by pressing ESC or mouse movement events.
How can I get hold of the whole screen, but if the login dialog appears, it should be shown on top?