Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: FredK Newsgroups: comp.lang.java.gui Subject: How to grab pointer Date: Wed, 15 Aug 2012 10:45:25 -0700 (PDT) Organization: http://groups.google.com Lines: 3 Message-ID: <6d596f35-fd58-4593-b40c-7cd54dbe23f1@googlegroups.com> NNTP-Posting-Host: 130.76.32.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1345053170 13483 127.0.0.1 (15 Aug 2012 17:52:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 15 Aug 2012 17:52:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=130.76.32.197; posting-account=_7xgmwoAAADi7iXKBO-oX5zbCfSzsCV0 User-Agent: G2/1.0 Xref: csiph.com comp.lang.java.gui:5225 How do I grab the pointer (similar to X's XGrabPointer), such that all mouse events will be sent only to my component that has the grab, until I relaease the grab? I want to initiate the grab, then allow the user to go anywhere on the screen and click somewhere; I will capture the location of the click and do something appropriate, depending on where the click occurred.