如何让一个jframewindow稳定在屏幕上,也就是不能拖动不能移动?

How to make a jframe window stable on the screen, that is, can't be dragged or moved?

比如我做的游戏window是600*800的,我要"immobilize"在屏幕上吗?

设为 full screen window:

JFrame frame = /* ... */;

frame.setUndecorated(true);

GraphicsEnvironment env =
    GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice screen = env.getDefaultScreenDevice();
screen.setFullScreenWindow(frame);