JDK-6191900 : Popup menu is totally unusable with Choice on XToolkit
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2004-11-06
  • Updated: 2011-01-19
  • Resolved: 2005-03-05
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
I am adding a popup menu to a choice. So when I right click inside the choice, I expect the popup menu to be shown. But when running it on XToolkit, the following behaviors are noticed

1. Right clicking the choice brings up the popup menu as well as choice's drop-down. So choice's drop-down sometimes overlap popup menu.

2. When clicking any of the menuitems in the popup menu, no action event is triggered. The clicked menuitem remains pressed.

3. The popup menu does not vanish once a menuitem is clicked. It stays there on the screen forever until I quit the application.

Considering the above failures, popup menu is completely unusable with Choice and this is broken only on XToolkit. Not reproducible on Win32 or Motif toolkit. Hence this is an incompatibility introduced only in Tiger. Reproducible on Mustang-b11 (Choice drop-down does not come up on b11 due to a different bug).

Run the attached test on XToolkit. You would see a frame with a choice. Right click on the choice. A popup menu would appear. Click on any of the menus / menu items. If you notice the above behaviors, the bug is reproduced.
###@###.### 2004-11-06 19:26:45 GMT

Comments
EVALUATION Choice on XAWT should behave like on Motif and Win32. The correct reaction on right click - to make nothing instead opening popupmenu. ###@###.### 2004-11-09 09:58:23 GMT Seems to be a duplicate of just fixed CR: 5003166. I ###@###.### 2005-03-05 15:41:11 GMT
09-11-2004