The Artima Developer Community
Sponsored Link

Java Answers Forum
How can I know the numlock key has been pressed

1 reply on 1 page. Most recent reply: Jul 7, 2005 9:06 PM by Antonio

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Qiang

Posts: 1
Nickname: skater
Registered: Sep, 2004

How can I know the numlock key has been pressed Posted: Sep 29, 2004 7:38 AM
Reply to this message Reply
Advertisement
Hi
I want to use the num board,but I don't know how to get the numclock event in java,could you help me?


Antonio

Posts: 33
Nickname: arhak
Registered: Jul, 2005

Re: How can I know the numlock key has been pressed Posted: Jul 7, 2005 9:06 PM
Reply to this message Reply
Did you try with KeyRelease event and KeyEvent.VK_NUM_LOCK as KeyCode?

see
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/KeyEvent.html#VK_NUM_LOCK
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/KeyEvent.html#VK_NUMPAD0

Flat View: This topic has 1 reply on 1 page
Topic: please help... Previous Topic   Next Topic Topic: How can I get a Companent's content and show it in another new Companent?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use