Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5227

Re: How to grab pointer

From FredK <fred.l.kleinschmidt@gmail.com>
Newsgroups comp.lang.java.gui
Subject Re: How to grab pointer
Date 2012-08-15 12:45 -0700
Organization http://groups.google.com
Message-ID <cf249382-ad5a-4eda-b348-d4ca19ce93fb@googlegroups.com> (permalink)
References <6d596f35-fd58-4593-b40c-7cd54dbe23f1@googlegroups.com> <k0gs4r$8lc$1@dont-email.me>

Show all headers | View raw


On Wednesday, August 15, 2012 12:09:15 PM UTC-7, Knute Johnson wrote:
> On 8/15/2012 10:45 AM, FredK wrote: > 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. > On your Java program or on the desktop? -- Knute Johnson

I would like to be able to do both. The user clicks on a "Select" button, then I want to let her move the mouse until it is over some component, then click there to identify the component of interest. I do not want that component to get a mouse event; I only want to know the coordinates of the click.

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to grab pointer FredK <fred.l.kleinschmidt@gmail.com> - 2012-08-15 10:45 -0700
  Re: How to grab pointer Knute Johnson <nospam@knutejohnson.com> - 2012-08-15 12:09 -0700
    Re: How to grab pointer FredK <fred.l.kleinschmidt@gmail.com> - 2012-08-15 12:45 -0700
      Re: How to grab pointer markspace <-@.> - 2012-08-15 13:28 -0700
        Re: How to grab pointer FredK <fred.l.kleinschmidt@gmail.com> - 2012-08-15 13:40 -0700
          Re: How to grab pointer markspace <-@.> - 2012-08-15 14:30 -0700
          Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-15 17:48 -0400
            Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-15 18:18 -0400
              Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-15 19:48 -0400
                Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-15 20:03 -0400
                Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-15 20:16 -0400
                Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-15 20:58 -0400
                Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-15 21:34 -0400
                Re: How to grab pointer FredK <fred.l.kleinschmidt@gmail.com> - 2012-08-16 11:03 -0700
                Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-16 16:54 -0400
                Re: How to grab pointer FredK <fred.l.kleinschmidt@gmail.com> - 2012-08-16 15:10 -0700
                Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-16 21:17 -0400
                Re: How to grab pointer "John B. Matthews" <nospam@nospam.invalid> - 2012-08-16 20:40 -0400
                Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-16 21:11 -0400
          Re: How to grab pointer Knute Johnson <nospam@knutejohnson.com> - 2012-08-15 15:05 -0700
          Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-22 19:54 -0400
            Re: How to grab pointer Jeff Higgins <jeff@invalid.invalid> - 2012-08-22 20:45 -0400

csiph-web