• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 579
  • Last Modified:

JAVA - using a Java applet, how do I turn PC keyboard LED's on and off?

Programming in Netbeans IDE 3.5.1 (JAVA), I need to turn the CAPS LOCK, NUM LOCK and SCROLL LOCK lights (led's) on the PC keyboard on and off using an applet.
0
watunda
Asked:
watunda
1 Solution
 
vippxCommented:
Hi,

You could try and use the Toolkit class and the Toolkit.setLockingKeyState(int keyCode, boolean on) method to set the keyboard lights and off...

an example of this code is

http://weblogs.java.net/blog/joshy/archive/2003/08/swinghack_keybo.html

Assuming u dont need actions and listeners, you can tweak this code to serve your purpose
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now