The Artima Developer Community
Sponsored Link

Java Answers Forum
A different kind of event listener. Need help please

1 reply on 1 page. Most recent reply: Jul 15, 2002 10:25 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Adrian

Posts: 3
Nickname: aw
Registered: Jul, 2002

A different kind of event listener. Need help please Posted: Jul 14, 2002 10:56 PM
Reply to this message Reply
Advertisement
Hi,

I'm writing a program where I need to capture mouse and keyboard events, but I don't want these events to be associated with my program. For example, when a user clicks the mouse button, out of my program, I want to be able to recognize that there has been a mouse pressed event. The only type of mouse listeners I can use at the moment is addMouseListener to a component, but this is useless as my program will be running in the back ground and therefore the components will not be in focus. It needs to be something like a system listener that captures events system wide.

Can anyone point me in the right direction please. Thankyou for any help


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: A different kind of event listener. Need help please Posted: Jul 15, 2002 10:25 PM
Reply to this message Reply
This is a very platform-specific thing not at all suited to Java. Even in Windows, this is not trivial with the API (and I don't think it is too easy in Linux, Unix or Mac, either). In any case, you will need to write a JNI module for each platform you want to handle.

Flat View: This topic has 1 reply on 1 page
Topic: Why does it say Type Vector not found???? Previous Topic   Next Topic Topic: Data type mismatch in criteria expression?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use