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 46673 - Add button doesn't hide submenu on second click
Summary: Add button doesn't hide submenu on second click
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-28 12:37 UTC by Milan Kubec
Modified: 2006-03-24 10:06 UTC (History)
0 users

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 Milan Kubec 2004-07-28 12:37:58 UTC
[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.
Comment 1 Jan Stola 2004-07-28 14:39:38 UTC
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).
Comment 2 Milan Kubec 2004-07-29 08:38:14 UTC
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.
Comment 3 Jan Stola 2004-07-29 13:24:16 UTC
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.
Comment 4 Milan Kubec 2004-08-17 16:10:37 UTC
Doesn't seem to be fixed in beta 1 candidate 200408170540.
Comment 5 Jan Stola 2004-08-17 16:17:24 UTC
It works with JDK 1.4.2. Unfortunately popup menus in JDK 5.0
seems to be slightly different.
Comment 6 Jan Stola 2004-08-19 11:03:04 UTC
Fixed also for JDK 5.0.
Comment 7 Milan Kubec 2004-08-20 10:27:03 UTC
Works nice, verified in custom 20040820.