JDK-4717900 : Provide method to determine mouse location
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2002-07-19
  • Updated: 2003-01-07
  • Resolved: 2003-01-07
Related Reports
Duplicate :  
Description
A Component can listen for mouse changes via a MouseListener
(or MouseMotionListener), but if the widget is reshaped there is no conveniant
way to determine if the mouse is still inside the Component bounds,
short of caching the location.
As different components many need to track this state it would be nice
if there were a method to determine the mouse location, perhaps on the
Component level if we are worried about access to the mouse location.

Comments
EVALUATION We'll put this on the queue for Tiger. ###@###.### 2002-07-19
19-07-2002