aspose file tools
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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