JDK-4198387 : No way to determine if all buttons up when MOUSE_RELEASE occurs.
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-12-17
  • Updated: 2001-06-27
  • Resolved: 2001-06-27
Related Reports
Duplicate :  
Description

Name: dbT83986			Date: 12/17/98


In trying to do some user interface functionality that is a
bit more fancy than the norm, I've come up against a
problem without an apparent workaround.  When a MOUSE_PRESSED
or MOUSE_RELEASED event occurs there is no way to determine
the *state* of the buttons.  All it tells you is the state change
of the buttons.  This makes it impossible to detrmine, say, if
all the mouse buttons are now "up" or "down" as a result of the
button change.  Of course you can wait until
a subsequent event like a mouse move to determine absolute mouse
button state but this is unacceptable in most user interface
situations.
(Review ID: 48116)
======================================================================

Comments
EVALUATION commit to merlin. xianfa.deng@Eng 2000-01-20 This is a subset of the features provided by new InputEvent modifiers in Merlin (J2SE 1.4). If no mouse buttons are down because of a MOUSE_RELEASED event, getModifiersEx() will have no BUTTONX_DOWN_MASK bits set, and the InputEvent.isButtonXDown() methods will all return false. brent.christian@eng 2001-06-27
27-06-2001