I am creating a desktop application using the JDesktopPane. I'm almost complete, but when I press ctrl + alt + del, it leaves my application. How can I prevent that action?
Disable the Ctrl-Alt-Delete event through Java program
Asked Answered
As I'm not certain, I won't offer an official answer, but I don't believe it is possible. On Windows, ctrl-alt-del is a reserved key combination. It would be a security flaw to allow applications the ability to override it. –
Raynor
Fact is Alt+Ctrl+Del never actually entering your application. Os traps Alt+Ctrl+Del before it is send to your application. So you can't trap it.
Alt+Ctrl+Del cannot be overridden. It is a security feature.
You cannot do that. The behavior of Alt+Ctrl+Del is enforced by the operating system, for good reasons: it makes sure that you can always bail-out of a faulty application.
http://www.codeproject.com/KB/winsdk/AntonioWinLock.aspx
lists several possibilities, from disabling the taskmanager to injecting keyboard hooks. But I doubt there's some built-in java functionality for that.
© 2022 - 2024 — McMap. All rights reserved.