aspose file tools*
The moose likes Beginning Java and the fly likes Reg:Scan code in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reg:Scan code in java" Watch "Reg:Scan code in java" New topic

Reg:Scan code in java

Jonny checker

Joined: Jun 18, 2008
Posts: 4
while adding keylistener in java it gives the keycode, but actually i need scan code how to get the scancode as similar to vc++(MFC) in java.Because im working in multiple languages different keyboard i have to support.if keycode used so may problem arises. to sove the problem, how can i get the scan code in java
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
What is scan code? How does it relate to keycode? Is there a translation from one to the other?
[ June 18, 2008: Message edited by: Norm Radder ]
Jonny checker

Joined: Jun 18, 2008
Posts: 4
scan code is a value based in the position of the key in the keyboard. scancode relates th the hardware specific
It is sorta covered in the JavaRanch Style Guide.
subject: Reg:Scan code in java
Similar Threads
keyCode versus scancode
Canvas, keyPressed() and TextBox
Keypad keypress
Is is possible to check which key has been pressed or what triggered the onbeforeunload event?
KeyEvent handling in a JTable