Results 1 to 2 of 2
  1. #1
    Albert is offline Senior Member
    Join Date
    Jun 2007
    Posts
    114
    Rep Power
    0

    Default How to access system calls in java

    Hi, How to access system calls in java example: determining whether cap's lock state is ON or OFF.

    Thanks
    Albert:rolleyes:

  2. #2
    susan is offline Member
    Join Date
    Jul 2007
    Posts
    44
    Rep Power
    0

    Default

    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 Code:
    java.awt.Toolkit.getDefaultToolkit().getLockingKeyState(java.awt.event.KeyEvent.VK_CAPS_LOCK);
    There are more on which events you can get here:
    KeyEvent (Java 2 Platform SE 5.0)
    and the ToolKit API:
    Toolkit (Java 2 Platform SE 5.0)
    Anyways, depending on what you're searching for as far as other system commands go depends on how it can be used.

Similar Threads

  1. Replies: 1
    Last Post: 03-13-2008, 03:36 PM
  2. Controlling method calls
    By bugger in forum New To Java
    Replies: 2
    Last Post: 01-04-2008, 02:14 PM
  3. Replies: 1
    Last Post: 08-07-2007, 08:51 AM
  4. Replies: 2
    Last Post: 08-03-2007, 05:06 PM
  5. Disk File System Access and Monitoring
    By drveresh in forum Advanced Java
    Replies: 1
    Last Post: 07-03-2007, 03:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •