This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Main menu popup is accidentally dismissed when you try to open item after a wizard dialog is canceled. It causes problem during automated tests. To reproduce: 1) run IDE 2) push main menu item Tools|Setup Wizard 3) cancel Setup Wizard 4) click on Tools menu item and move mouse down => popup disappears (if not repeat steps 2-4) - you have to move mouse back to Tools item and then popup is showed again and it doesn't disappear any more. Tested in build 20030908-0621, JDK1.4.2_01, WindowsXP.
reproducible on Sol 5.8 CDE
Reproducible on Linux, 1.4.2.
Unfortunately removeNotify() for this menu is called ie. menu is removed from AWT hierarchy (it looks like menu is hidden or rolled up.) It is caused by processing of mouseExited event. It looks like it is inherent bug in our JMenuPlus because it returns IMHO incorrect size [w=301,h=21]. I think height should be much bigger because menu is long enough. I suspect it is caused by update menu after it is displayed. CCing P.Nejedly if he has any idea what to do. In addition it is caused by some other modal dialogs like Projects Manager and Keyboard Shortcuts.
It seems size is ok because standalone app returns similar size for standard menu ...
I am able to reproduce it with simple standalone test app. MenuDemo with empty modal dialog is enough. I will file bug to Bugtraq against JDK.
Issue #4923870 is filed to Bugtraq. You can add yourself to interest list. Closing this issue.
I attach test app to demonstrate bug. Steps to reproduce are the same as above: 1.Start test application (it is based on MenuDemo.java). 2.Select first menu bar item 'A Menu' from menu bar. Select 'Create modal dialog'. 3.Modal dialog 'TEST' will be displayed. 4.Close it. 5.Select again first menu bar item 'A Menu' from menu bar. Pull down menu is displayed. 6.Slowly move mouse cursor down. Sometimes just as mouse cursor crosses line between menu bar and pull down menu pull down menu disappears. If it does not disappear repeat steps 2-6 again. (It usualy happens during second or third repetition).
Created attachment 11644 [details] Test app
Verified that it is a bug in JDK.
*** Issue 44092 has been marked as a duplicate of this issue. ***
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4911422 This issue has been fixed for JDK 1.5 ....