This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Windows Keys and Java Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Windows Keys and Java Application" Watch "Windows Keys and Java Application" New topic

Windows Keys and Java Application

John P Coffey

Joined: Jul 02, 2010
Posts: 3
I'm not sure if this is the correct place to pose this question, but here goes anyhow. Does anyone know why the Windows Key + the arrow keys do not work in a Java Application. Is there some magic initializer api I need to call to make sure that my app does the appropriate windows thing when these keys are pressed. I note that netbeans (my ide) does the right thing (maximizing, restoring and positioning the ide appropriately - the thing that these windows 7 new keyboard combinations is supposed to do).
Tim Moores

Joined: Sep 21, 2011
Posts: 2408
You need to handle those in your app. The JVM does not catch and handle those for you. Maybe there's some Windows API you could call if you want to minimize/restore the app.
It is sorta covered in the JavaRanch Style Guide.
subject: Windows Keys and Java Application
Similar Threads
Detecting Key Presses in Windows (without focus)
How can I disable a keyboard in Web application
if Java has garbage collection, then why
what is best ide jbuilder or visula age or someother
Detecting Key Presses in Windows (without focus)