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-200407271830, JDK 1.5.0, Ocean L&F] Add button (+) in form editor doesn't hide submenu if clicked when the menu is shown. It's standard behavior of menu buttons to hide submenu if clicked twice.
I haven't heard about such a standard. It is probably a misunderstanding - it is not a menu button, it is a toggle button in a toolbar. Moreover it is a member of a set of mutually exclusive toggle buttons. Maybe it would have a sence for a normal toggle button that is unselected by the second click, but this button is not unselected by such a mouse click (the behaviour is similar to a radio button group).
By 'standard behavior' I meant to say that other (99.9%) buttons behave in such a way that second click dismisses the menu. Not that there is some UI standard. I think that the button doesn't have to be unselected by the second click, it could just hide the menu (it works this way if user selects some bean) and last selected bean will be still active. Or it really could be unselected as is when user clicks out of the button. Second click on the same button usually means canceling the action. Reopening because I'd like to see some opinion from HIE (please reassign) that this pacticular button (regardless of button group or its type) can behave differently than the rest of buttons (that invokes menus) in IDE. It's quite anoying that when user uses learned UI pattern to dismiss menu and in fact the menu is still there sticking and abusing.
OK, I resign. It (probably) is not worth the effort to continue in a discussion about such a minor issue (BTW at most P4 according to Bug Priority Guidelines). Fixed.
Doesn't seem to be fixed in beta 1 candidate 200408170540.
It works with JDK 1.4.2. Unfortunately popup menus in JDK 5.0 seems to be slightly different.
Fixed also for JDK 5.0.
Works nice, verified in custom 20040820.