JDK-5005195 : CheckboxMenuItem fires action events
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-02-28
  • Updated: 2005-07-23
  • Resolved: 2005-07-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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6
6 b45Fixed
Related Reports
Duplicate :  
Description
Name: agR10216			Date: 02/28/2004


Run the manual regression test test/java/awt/Frame/MenuCrash with the tiger
b39 with MAWT. The instructions for a tester says:
"Try mousing around the menus and choosing various items to see the menu
item name reflected in the text field. Note that CheckBoxMenuItems do
not fire action events so the check menu item will not change the field."
However, selecting a CheckBoxMenuItem does fire an action event.

###@###.### 2004-02-28
======================================================================

Comments
SUGGESTED FIX *** /net/karanar/export/vb157120/ml/webrev/src/solaris/classes/sun/awt/X11/XCheckboxMenuItemPeer.java- 2005-06-10 19:34:18.968483000 +0400 --- /net/karanar/export/vb157120/ml/webrev/src/solaris/classes/sun/awt/X11/XCheckboxMenuItemPeer.java 2005-06-10 19:34:18.929561000 +0400 *************** *** 107,117 **** XWindow.postEventStatic(e); //WToolkit does not post ActionEvent when clicking on menu item //MToolkit _does_ post. ! //Looks like we should reproduce MToolkit's behavour and ! //event should be posted here ! XWindow.postEventStatic(new ActionEvent(cb, ActionEvent.ACTION_PERFORMED, ! getTargetActionCommand(), when, ! 0)); } } // class XCheckboxMenuItemPeer --- 107,117 ---- XWindow.postEventStatic(e); //WToolkit does not post ActionEvent when clicking on menu item //MToolkit _does_ post. ! //Fix for 5005195 MAWT: CheckboxMenuItem fires action events ! //Events should not be fired ! //XWindow.postEventStatic(new ActionEvent(cb, ActionEvent.ACTION_PERFORMED, ! // getTargetActionCommand(), when, ! // 0)); } } // class XCheckboxMenuItemPeer ###@###.### 2005-06-10 15:36:41 GMT
2005-06-10

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
2004-09-07

EVALUATION Name: rpR10076 Date: 02/28/2004 We'll fix it in dragonfly. ###@###.### ======================================================================
2004-09-07