Please use the Apache issue tracking system for new NetBeans issues ( !!

Bug 78199

Summary: ListView unable to show context menu of root node
Product: platform Reporter: Nathan Fiedler <nlfiedler>
Component: ExplorerAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED WONTFIX QA Contact: issues <>
Priority: P2    
Version: 5.x   
Target Milestone: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Report:

Description Nathan Fiedler 2006-06-16 23:37:24 UTC
The TreeView has an important feature in which right-clicking in the space
around the tree nodes causes the context menu of the hidden root node to appear.
We utilize this feature in the EntPack and rely on it.

Unfortunately, the ListView lacks this feature. Basically two things need to happen:

1. ListView.PopupSupport.showPopup(MouseEvent) needs to not change the selected
index if the mouse location is outside of the bounds of any list item (i.e. if
contextMenu were true).

2. ListView.createPopup() should set the hidden root node as the selected node
if the contextMenu parameter is true (in order for the context menu actions to
have the appropriate context).
Comment 1 Antonin Nebuzelsky 2008-02-07 16:14:05 UTC
Reassigning to new module owner Tomas Holy.
Comment 2 Jaroslav Tulach 2010-04-01 21:02:15 UTC
Provide patch, if you want this.
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo