JDK-4353201 : The MouseEvent modifiers have wrong value with 2 buttons pressed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.3.0,1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,solaris_7
  • CPU: generic,x86
  • Submitted: 2000-07-14
  • Updated: 2001-09-13
  • Resolved: 2001-01-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 betaFixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description

Name: ssR10077			Date: 07/14/2000


After pressing first mouse button, when second is button pressed or released,
modifiers are set for both buttons. It contradicts with doc for MouseEvent. 
The behavior can be tested with:

import java.awt.*;
import java.awt.event.*;

public class ModifiersTest extends Frame {
    public static void main(String argv[]) {
	ModifiersTest test = new ModifiersTest();
	test.setVisible(true);
    }

    ModifiersTest() {
	super("ModifiersTest");
	enableEvents(AWTEvent.MOUSE_EVENT_MASK 
		     | AWTEvent.MOUSE_MOTION_EVENT_MASK);
	setSize(200,200);
    }

    protected void processMouseEvent(MouseEvent e) {
	System.out.println(e);
	super.processMouseEvent(e);
    }
}
  
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin FIXED IN: merlin INTEGRATED IN: merlin-beta VERIFIED IN: merlin-beta2
14-06-2004

EVALUATION Commit to fix in Merlin. eric.hawkes@eng 2000-07-14 Name: ssR10077 Date: 01/11/2001 Fixed by RFE 4387938 ======================================================================
14-07-2000