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.

Bug 35962 - Main menu popup accidentally rolled up
Summary: Main menu popup accidentally rolled up
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords: T9Y
: 44092 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-08 15:54 UTC by Jiri Skrivanek
Modified: 2008-12-22 22:59 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test app (6.85 KB, text/plain)
2003-09-17 10:35 UTC, mslama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2003-09-08 15:54:21 UTC
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.
Comment 1 Marian Mirilovic 2003-09-08 16:07:19 UTC
reproducible on Sol 5.8 CDE
Comment 2 Jesse Glick 2003-09-08 17:21:42 UTC
Reproducible on Linux, 1.4.2.
Comment 3 mslama 2003-09-16 17:00:59 UTC
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.
Comment 4 mslama 2003-09-16 17:14:31 UTC
It seems size is ok because standalone app returns similar size for
standard menu ...
Comment 5 mslama 2003-09-16 17:23:53 UTC
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.
Comment 6 mslama 2003-09-17 10:33:54 UTC
Issue #4923870 is filed to Bugtraq. You can add yourself to interest
list. Closing this issue.
Comment 7 mslama 2003-09-17 10:35:00 UTC
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).
Comment 8 mslama 2003-09-17 10:35:39 UTC
Created attachment 11644 [details]
Test app
Comment 9 Jiri Skrivanek 2003-09-17 12:21:45 UTC
Verified that it is a bug in JDK.
Comment 10 Marian Mirilovic 2004-06-14 08:46:55 UTC
*** Issue 44092 has been marked as a duplicate of this issue. ***
Comment 11 Marian Mirilovic 2005-03-07 06:35:49 UTC
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4911422

This issue has been fixed for JDK 1.5 ....