JDK-4058818 : WinNT: Navigation buttons activate on button-up whether over button or not
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.0.1
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1997-06-13
  • Updated: 1998-08-13
  • Resolved: 1998-08-13
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 Other
1.1.5 1.1.5Fixed 1.2.0Fixed
Related Reports
Relates :  
Description
On WinNT, if I button-down on one of the navigation buttons, but then decide that I don't want to do that action, even if I move off of the button before letting the button up, the action still happens.  That's not what happens on Solaris.  (I haven't tried Win95.)

peter.kessler@Eng 1997-06-13

------------
Made changes to awt_Component.cpp and awt_Toolkit.cpp. Reviewed by Robert Bruce. Also see BugId 4038721, where the changes fixed that bug as well.

In awt_Component.cpp, removed WM_MOUSEMOVE simulation in SetCursor, and changed MouseMove function to set m_dragged flag and not eat mouse messages.

mike.somlo@eng 1997-10-14

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.1.5 1.2 INTEGRATED IN: 1.1.5 1.2
14-06-2004

EVALUATION mike.somlo@eng 1997-10-09 The button does get an extra MOUSE_PRESSED event when the mouse is no longer over the button. Here is code to test this: import java.awt.*; import java.awt.event.*; class Test extends Frame implements MouseListener, WindowListener { Button btn = new Button("Click Me!"); public void windowOpened( WindowEvent e) {} public void windowClosing( WindowEvent e) { System.exit(0); } public void windowClosed( WindowEvent e) {} public void windowIconified( WindowEvent e) {} public void windowDeiconified( WindowEvent e) {} public void windowActivated( WindowEvent e) {} public void windowDeactivated( WindowEvent e) {} public void mousePressed( MouseEvent evt ) { System.out.println("mousePressed"); } public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) { System.out.println("mouseExited"); } public void mouseReleased(MouseEvent e) {} public void mouseClicked( MouseEvent e ) { System.out.println("mouseClicked"); } public Test() { addWindowListener(this); setLayout(null); setSize(200,150); addNotify(); btn.setBounds(30, 70, 120, 40); add(btn); btn.addMouseListener(this); show(); } public static void main(String argv[]) { Test t = new Test(); } }
11-06-2004