Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2006

Tip: Looking for answers? Try searching our database.

Spezielle Windows Tasten abfragen

Thread view: 
goetz.markgraf@t-online.de - 14 Mar 2006 08:47 GMT
Hallo zusammen,

wir schreiben eine Anwendung in Java, die nur auf Windows-Systemen
läuft, daher ein wenig Plattformabhängigkeit verträgt...

Gibt es eine Möglichkeit, die Menü-Taste (rechts zwischen Windows und
Strg) abzufragen? Wir haben eine Menge Leute, die mit Tastaturen
arbeiten, aber sich irgendwie nicht an CTRL-XCV gewöhnen können...

Wir nutzen JDK 1.4.2

Vielen Dank,
Goetz
goetz.markgraf@t-online.de - 14 Mar 2006 08:50 GMT
Hi there,

sorry, I hit the wrong language... :-)

We are writing a java application that runs only of windows systems and
therefore can do with a litte of plattform dependency...

Is there a possibility to get the special menu key on the microsoft
keyboards (on the right between the windows and the ctrl-key)? We have
a lot of keyboard users that still don't learn CTRL-XCV...

Thanx,
Goetz
Andrey Kuznetsov - 14 Mar 2006 09:10 GMT
> We are writing a java application that runs only of windows systems and
> therefore can do with a litte of plattform dependency...
>
> Is there a possibility to get the special menu key on the microsoft
> keyboards (on the right between the windows and the ctrl-key)? We have
> a lot of keyboard users that still don't learn CTRL-XCV...

I am pretty sure that it is mapped to VK_META.

Signature

http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities

Bart Cremers - 14 Mar 2006 09:13 GMT
Since 1.5 the KeyEvent contains some new constants:

KeyEvent.VK_WINDOWS : for the "window" key
KeyEvent.VK_CONTEXT_MENU : for the "menu" key

So, you should be able to install a keylistener and monitor those keys.

Regards,

Bart
Roedy Green - 14 Mar 2006 09:28 GMT
>We are writing a java application that runs only of windows systems and
>therefore can do with a litte of plattform dependency...
>
>Is there a possibility to get the special menu key on the microsoft
>keyboards (on the right between the windows and the ctrl-key)? We have
>a lot of keyboard users that still don't learn CTRL-XCV...

try http://mindprod.com/products1.html#KEYPLAY

Hit the key and hit it is combination with other keys to see how it
appears in Java.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

goetz.markgraf@t-online.de - 14 Mar 2006 13:45 GMT
Roedy Green schrieb:

> try http://mindprod.com/products1.html#KEYPLAY
>
> Hit the key and hit it is combination with other keys to see how it
> appears in Java.

Thanx for alle the good advices. Unfortunately, we cannot switch to 1.5
like this. The KeyEvent does not give any useful information (as shown
by KeyPlayer).

Is there any other possibility to get the menu key under 1.4.2? If not,
we have to wait for 1.5

Thanx,
Goetz
Oliver Wong - 14 Mar 2006 21:36 GMT
> Thanx for alle the good advices. Unfortunately, we cannot switch to 1.5
> like this. The KeyEvent does not give any useful information (as shown
> by KeyPlayer).
>
> Is there any other possibility to get the menu key under 1.4.2? If not,
> we have to wait for 1.5

   Java 1.5 is already out. Sun is even almost finished with 1.6. [*]

   - Oliver

[*] I'm making this assumption based on the fact that they're giving away
prizes to anyone who can find a regression bug between 1.5 and 1.6.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.