This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions
  • 7,916,821 Comments

Discussions

CAPS lock status in Linux

803718
803718 Member Posts: 1
edited Oct 7, 2010 6:31AM in Abstract Window Toolkit (AWT)
Hi,
I'm trying to get the CAPS lock status in Java to display the same to the user in my application. I've used the code

Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK) .

This works properly in Windows but throws UnsupportedOperationException in Linux. Can you help me to get the CAPS lock state in Linux.

Regards
Ruban

Answers

This discussion has been closed.