I have a frame in java, and it sits in the middle of the screen. I do not want it to be moved to other places on the screen like I would to set it?
I have a frame in java, and it sits in the middle of the screen. I do not want it to be moved to other places on the screen like I would to set it?
Anyone who moves windows is the window manager, if you remove the title bar, it will make it difficult to move, although it is still possible in other ways (in linux, for example, some task managers allow you to do this with the ALT
key %). This is the same approach used in these applications opening / loading screens as Eclipse and IntelliJ.
So, if you can leave your APP without a title bar, do:
jFrame.setUndecorated(true);
I do not know any other solution.