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 17106 - Help Sets menu keyboard activation problem
Summary: Help Sets menu keyboard activation problem
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords:
: 16917 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-29 17:26 UTC by Peter Zavadsky
Modified: 2008-12-22 22:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Zavadsky 2001-10-29 17:26:12 UTC
1) Start IDE
2) Navigate thru keyboard to main menu | Help
3) Navigate via arrow keys to Help Sets menu and try to invoke it via right
arrow key, it doesn't work.

Note: Similar issue was #11494, but solution is in this case up to the owner of
the menu presenter. The Help Sets item is JMenuPlus and should be handled the
way its initialized when needed. In the above case it was empty (popup had 0
subelements).
Comment 1 Jesse Glick 2001-10-29 18:42:35 UTC
This menu is an ordinary menu subfolder, handled by
org.openide.awt.MenuBar, so probably that code is at fault.
Comment 2 Peter Zavadsky 2001-10-30 07:11:05 UTC
Jesse is right, the code is wrong.
(Reassigning to me).

The problem is following.
Lazy creation of popup menu using listening (on popupWillBecomeVisible
exactly) on popup itself is wrong, at least I think so.
The menu should be always in consistent state when result from
getPopupMenu method is got. I.e. in this case the action showing the
popup first calls getPopupMenu figures out if it's empty and therefore
no showing occures (thus no firing of event when the menu would be in
fact lazilly created).

Solution: I guess the lazy creation should be performed when
getPopupMenu called, and not via listening on popup itself which could
be in inconsistent state ( popupWillBecomeVisisble).
Comment 3 Peter Zavadsky 2001-10-30 08:39:39 UTC
Fixed in [main-trunk].

Fix:
openide/../openide/awt/MenuBar.java [1.36]
Comment 4 Peter Zavadsky 2001-10-30 15:08:32 UTC
*** Issue 16917 has been marked as a duplicate of this issue. ***
Comment 5 Marian Mirilovic 2002-05-30 14:22:40 UTC
verified in [nb_dev](20020530)
Comment 6 Quality Engineering 2003-07-01 16:33:32 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.