0

is there a way to remove the windows key effect on the local machine, so that my program doesn't minimize? I have tried an empty if statement, but that didn't do anything.

Thanks for any help.

5
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by dmanw100
0

I suspect there is no way in pure Java to prevent it, but you could have a WindowStateListener and immediately restore it to normal when it's minimized.
On the other hand if you are choosing to ignore the user's decision to minimize your window, then you should have a very good reason.

0

Thanks, and it is so my 15 month old cousin can't change anything on the computer. I have a way of closing the program though.

0

why bothering with that not simple job use JDialog instead, don't have a minimize maximize button.

0

This sounds like something you could easily solve by putting a short password on your user account and locking the computer (by using the Start menu or Windows Key + L) when you're not around.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.