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 213151

Summary: Extra click needed to get rid of pop-up menu in Projects or Files window
Product: platform Reporter: Petr Somol <psomol>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED WONTFIX    
Severity: normal Keywords: UI, USABILITY
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Petr Somol 2012-05-29 12:13:42 UTC
Consider the following usecase. I right-click project name in Files view to open the pop-up window. Not seeing in it what I need I realize I needed to open it from Projects window instead of Files window. I click Projects tab, but this does not open the Projects window as expected, it only closes the pop-up. I click Projects once more, but instead of just switching to Projects window my UI input is interpreted as double-click and Projects gets enlarged to the whole IDE. This is counter-intuitive and annoying.

The pop-up window should not need the extra click to close. One click should be enough to both close the pop-up and to perform the intended action. The IDE seems to promote such behavior, because while having the pop-up open, hovering over various elements like buttons in toolbar shows them active and thus welcoming user input. Moreover, in editor window the behavior of pop-ups is correct in this sense.
Comment 1 Jesse Glick 2012-05-29 22:00:39 UTC
(In reply to comment #0)
> I click Projects tab, but this
> does not open the Projects window as expected, it only closes the pop-up.

As designed AFAIK but not sure.

> I click Projects once more, but instead of just switching to Projects window my
> UI input is interpreted as double-click and Projects gets enlarged to the whole
> IDE.

Working for me on Linux / JDK 7 / Nimbus. The Projects window is selected and that is all.

> while having the pop-up open, hovering
> over various elements like buttons in toolbar shows them active and thus
> welcoming user input.

Sounds like a Swing bug?

The Projects and Files windows do nothing special to implement popups that I know of - just general explorer views. Not sure what the editor window does.
Comment 2 Stanislav Aubrecht 2012-05-30 09:04:53 UTC
That's default behavior in all Swing applications (try e.g. SwingSet demo). Mouse events are being sent even though popup menu is showing.

Please feel free to file a bug against JDK.