...

system calls in java

phani
09-08-2002, 08:00 AM
hi

how to access system calls in java eg: determining whether capslock state is ON or OFF.

Gox
03-23-2007, 05:08 PM
For starters, System calls will most likely depend on what platform/OS you're running on.

Aradon
03-24-2007, 01:34 AM
I wish I knew more about this to be honest but I did a google search on the caps lock idea in java and got this piece of code:


java.awt.Toolkit.getDefaultToolkit().getLockingKeyState(java.awt.event.KeyEvent.VK_CAPS_LOCK);


There are more on which events you can get here:

KeyEvents (http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/KeyEvent.html)
and the ToolKit API:

ToolKit (http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Toolkit.html)

Anyways, depending on what you're searching for as far as other system commands go depends on how it can be used.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum