JDK-4352790 : Mouse enter/exit events generated without modifiers
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.2,1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_95,windows_nt
  • CPU: x86,sparc
  • Submitted: 2000-07-13
  • Updated: 2001-01-23
  • 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 :  
Description

Name: apR10133			Date: 07/13/2000


------------------------- Test.java ---------------------------------
import java.awt.*;
import java.awt.event.*;

public class Test extends JFrame {

    public Test() {
	super("Test");
	setBounds(100,100,400,200);

	addMouseListener(new MouseAdapter() {
		public void mouseEntered(MouseEvent event) {
		    System.out.println("Entered: "+event.getModifiers());
		}
		public void mouseExited(MouseEvent event) {
		    System.out.println("Exited:  "+event.getModifiers());
		}
	    });

	addMouseMotionListener(new MouseMotionAdapter() {
		public void mouseDragged(MouseEvent event) {
		    System.out.println("Dragged:  "+event.getModifiers());
		}
	    });
    }

    public static void main(Streing[] args) {
	(new Test()).setVisible(true);	
    }
}

---------------------------------------------------------------------
======================================================================

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

WORK AROUND Name: apR10133 Date: 07/13/2000 ======================================================================
11-06-2004

EVALUATION Name: ssR10077 Date: 07/14/2000 MouseEvents MOUSE_ENTERED/MOUSE_EXITED are explicitly created by WmMouseEntered()/WmMouseExit() in awt_Component.cpp with zero modifiers. The modifiers value for these events is not specified in doc. ====================================================================== There is no indication in the documentation that any modifier will be set for mouseEntered or mouseExited events. Not a bug. richard.ray@eng 2000-07-17 Name: ssR10077 Date: 01/11/2001 Fixed by RFE 4387938 ======================================================================
17-07-2000