Reputation: 1
I have a security based application in Java, and I want that application not to be closed or minimized by the user while running.
Upvotes: 0
Views: 60
Reputation: 1269
I don't know of any available restrictions, but perhaps you could override the use of alt+tab, ctrl+alt+del,... So your users can't exit your application through tabbing.
Upvotes: 0
Reputation: 1155
What you are wanting to do is impossible. Modern operating systems are designed so that what you want to do is not possible. It would be a security threat if it was.
Even if you managed to lock out the keyboard and mouse, they would still be able to login to the machine remotely (assuming it is set up of course) and kill of anything they wanted.
If they do not have remote access setup. There is nothing stopping them from switching the computer off - by force if necessary and restarting.
I would look at options of what you can do if they close or minimise the application
Upvotes: 2