Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
RE: How to track JFrame position?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to track JFrame position?





> From: email@hidden
> Date: Wed, 17 Nov 2010 22:28:35 +0100
> To: email@hidden
> CC: email@hidden
> Subject: Re: How to track JFrame position?
>
>
> On Nov 17, 2010, at 8:28 PM, Mike Swingler wrote:
>
> > Perhaps there is another technique that could achieve the same end results you are seeking

You could get the global position of the mouse (position on the screen) and the position of the mouse on the window (JFrame), from these two pieces of information its a simple matter to get the position of the JFrame.

You can use the AWT Robot class to get position of the mouse on the screen.

Hope that helps.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to track JFrame position? (From: Piotr Rychlik <email@hidden>)
 >Re: How to track JFrame position? (From: Mike Swingler <email@hidden>)
 >Re: How to track JFrame position? (From: Piotr Rychlik <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.