getLockingKeyState

Mina R Waheeb syncer at gmail.com
Sat Apr 21 19:25:56 UTC 2007


Hi all,
  I'm using jdk-1.5.0p3 port and some of keyboard events doesn't seems
to work. I have test it on another platform its works fine. The method
java.awt.Toolkit.getDefaultToolkit().getLockingKeyState(java.awt.event.KeyEvent.VK_CAPS_LOCK)
 should return status of  CAPS_LOCK,  But when i run the code on
FreeBSD with jdk-1.5.0p3 port the code broken and throws exception
and here is the exception  details :

Exception in thread "AWT-EventQueue-0"
java.lang.UnsupportedOperationException: Toolkit.getLockingKeyState
	at java.awt.Toolkit.getLockingKeyState(Toolkit.java:1303)

Did i miss something? or any idea how to fix that.

Thanks,
Mina


More information about the freebsd-java mailing list