Murali mohan
Murali mohan

Reputation: 21

How to stop movements of my JFrame on screen/Monitor?

How to stop movements of my JFrame on screen/Monitor?
My JFrame size is as much as Screen/Monitor size and my client does not even want to display the task bar.

If I write myFrame.setExtendedState(JFrame.MAXIMIZED_BOTH), it is not allowing to move on screen but showing taskbar, but I don't want to display taskbar.

Upvotes: 0

Views: 192

Answers (1)

AlexR
AlexR

Reputation: 115328

You actually want so called "full-screen mode". Take a look on this article to see how to do this: http://docs.oracle.com/javase/tutorial/extra/fullscreen/exclusivemode.html

Shortly you have to call device.setFullScreenWindow(myWindow)

Upvotes: 1

Related Questions