How can I capture all keyboard and mouse event on the system ?

How can I catch events(for eg: mouse clicks) on the Desktop? I do not want to use any AWT or Swing components in my application.

Also, i want to get events on other java/non-java application windows are visible on desktop, as long as my application is running.

In short, the requirement is to capture all keyboard and mouse event on the system as long as my application is running.

[401 byte] By [Mkarattua] at [2007-11-26 16:49:02]
# 1

You might get an answer, but I think you may have missed the message at the top of this forum:

Thank you for any participation in this forum. Due to a lack of relevant activity, we have decided to archive this forum on June 16, 2006. For future posts on this topic, we suggest you use the Enterprise JavaBeans forum.

Thank you for using Sun Forums.

zadoka at 2007-7-8 23:16:34 > top of Java-index,Security,Event Handling...
# 2
You cannot do this using pure java.
CaptainMorgan08a at 2007-7-8 23:16:34 > top of Java-index,Security,Event Handling...