Breaking News
Home / Java / Java Tutorials / Programmatically Toggle Function Keys

Programmatically Toggle Function Keys

Toggle Function Keys using Java

The function keys of the keyboard  Caps Lock, Num Lock and Scroll Locks keys can be turned on or off programmatically via the simple API available in the Toolkit class. This feature is very helpful in AWT/Swing based applications where we want data in certain format ex. all input must be in capital letter etc. or  we want the number pad be on for entering numeric data etc.

The following snippets shows  how to turn Caps Lock, Num Lock and Scroll Locks keys on or off via API.




Check Also

Have a Question

How to select a JVM Analyzing Tool?

A JVM monitoring tool also know as a Diagnostic might be needed to fine tune …

Advertisment ad adsense adlogger