I am working on a game project, and I wrote a basic code that allows the game to work in full screen mode.
My problem is that while the game is in full screen mode, I canβt click Prnt Scrn to take screenshots! If I try to take a screenshot, these are just screenshots that are behind the full-screen game window. Any ideas why this is not working?
I start on Windows 7. Here is SSCCE illustrating my problem:
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class FullscreenScreenShotSSCCE extends JFrame { private JPanel screenP; private GraphicsDevice grDev; public FullscreenScreenShotSSCCE() { super("Fullscreen Prnt Scrn problem SSCCE"); int screenX = 640; int screenY = 480; this.setSize(screenX,screenY);
Cazra source share