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.
dev feb 11, JDK 1.4.1_01, MDI, Linux 2.4.18, Gnome + Sawfish (sloppy focus). Mnemonics never work in a menu whose first item is a submenu. Does not matter whether the submenu is a sfs:Menu/A/B/ subfolder, or a generated submenu such as Window -> Attach MDI Frame. When the menu is posted (e.g. Alt-W), the submenu is selected (not expanded), and no mnemonics for the rest of the menu work. Generally this seems to be true whenever a submenu is selected; if you use arrow keys to move to a simple menu item, then all mnemonics begin working. Fully reproducible for me; can add/delete/move down initial submenus at runtime and see the effects. Hinders KB access, esp. to the default Window menu.
> Mnemonics never work in a menu whose first item is a submenu. It isn't true , if you try menu Build (Start Session), or Versioning (Mount Versioning) it works fine. There is something broken only in Window menu, because if you invoke menu Window and than press 't', actually focused window is attached to Top, it means that pressed key 't' is posted to submenu "Attach MDi Frame". Something is broken in Window | Frame resides too, it doesn't expand menu - nothing happens.
Ups, it seems like it works described way (doesn't work0 only on [s1s_se](20030218), it's not reproducible on [nb_dev](20030219)
The problem is in Swing, I'll attach simple demo application.
Created attachment 9148 [details] Simple swing app with this problem
Generally, the mnemonics don't work once the menu selection is on item which is submenu. Swing probably tries to route the mnemonics to the (yet unexpanded) submenu. In the attached app, you can test it by Alt+e (first menu) Down, Down (select the submenu, but don't open it) A (the mnemonic don't work any more, although the item with submenu is not first).
OK, well someone should file a BugTraq bug - assign to me if you want me to do it. Thanks for the demo form Petr, I can reproduce with that easily.
Passing to Jesse per his request. Petr, if you want it, take it back.
Seems to have been fixed in the JDK already; at least I can no longer reproduce in Mantis b18. The submenu is still selected & unexpanded when you post the window, but mnemonics for other menu items work fine.
closing.