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


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

Re: How to grab pointer

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.gui
Subject Re: How to grab pointer
Date 2012-08-22 19:54 -0400
Organization A noiseless patient Spider
Message-ID <k13rg9$9dr$1@dont-email.me> (permalink)
References <6d596f35-fd58-4593-b40c-7cd54dbe23f1@googlegroups.com> <k0gs4r$8lc$1@dont-email.me> <cf249382-ad5a-4eda-b348-d4ca19ce93fb@googlegroups.com> <k0h0oh$bik$1@dont-email.me> <1b554d4b-ca3a-459d-993e-5225c479b277@googlegroups.com>

Show all headers | View raw


On 08/15/2012 04:40 PM, FredK wrote:
> On Wednesday, August 15, 2012 1:28:00 PM UTC-7, markspace wrote:
>> On 8/15/2012 12:45 PM, FredK wrote:>  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.>  What the goal of this request? If you're looking to copy mouse clicks, Java has a "Robot" that records mouse clicks and can replay them. You might also look at the Robot code to see how they implement it.<http://docs.oracle.com/javase/7/docs/api/java/awt/Robot.html>
>
>
> An app similar to EditRes, but for Java apps instead of X/Motif.

Not cross application but may be interesting.
<http://fxexperience.com/scenic-view/>

>
> I generate a tree showing all of the GUI components of the app. I want the user to be able to point to a component in the app, then that item will be displayed as selected in the tree. So when the user presses the "Select" button, the cursor changes (say, to "hand"), my comnponent grabs the mouse so only it gets events; then thye user moves the cursor until is over some component anywhere on the screen, and clicks there. My component receives the press event and figures out what component it is over and highlights the tree node that represents that component. I do not want the press event to be sent to the component under 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