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 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reg:Scan code in java" Watch "Reg:Scan code in java" New topic
Author

Reg:Scan code in java

Jonny checker
Greenhorn

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
Greenhorn

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reg:Scan code in java
 
Similar Threads
Is is possible to check which key has been pressed or what triggered the onbeforeunload event?
Keypad keypress
Canvas, keyPressed() and TextBox
KeyEvent handling in a JTable
keyCode versus scancode