Are you trying to lock the keys for the entire OS or just in your Java app. If you are trying the latter, noper. Not gonna work. Not without JNI anyway, which would require that c/c++ you mentioned.
From your post what I gather is that you want to block keyboard input for intire operating system from within your java application.
To best of my knowledge this impossible without JNI. It has to be done through a native c/c++ method. In case you want to know how it is tobe done in windows through c++ try finding information on "Programming Windows Hooks". There is lot of information available on MSDN.
Pritam Barhate<br />A magic combination of <b>Code</b> & <b>Fire</b> : <a href="http://www.jroller.org/page/codefire/Weblog" target="_blank" rel="nofollow">codefire</a><br />----------------------------------- <br />My Open Source Projects:<br /><a href="https://acemdi.dev.java.net/" target="_blank" rel="nofollow">AceMDI</a>: A easy, yet powerful MDI framework that manages windows as Tabs.
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
Gift giving made easy with the permaculture playing cards