File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes How to mask Alt + Tab and Alt + Esc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to mask Alt + Tab and Alt + Esc " Watch "How to mask Alt + Tab and Alt + Esc " New topic

How to mask Alt + Tab and Alt + Esc

raj varma

Joined: Jan 05, 2003
Posts: 28
How do i mask alt+tab and alt+Esc in my full screen gui swing application ?
Please Help
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
You probably need to implement a KeyListener and listen for that sequence of key strokes.
Not sure what you mean when you say that you want to "mask" them. You can "consume" that second event, which will probably do what you intend. Actually getting rid of BOTH would require buffering up key strokes before releasing them to the queue, which is way less straight forward.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: How to mask Alt + Tab and Alt + Esc
It's not a secret anymore!