Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 78199 - ListView unable to show context menu of root node
ListView unable to show context menu of root node
Product: platform
Classification: Unclassified
Component: Explorer
All All
: P2 (vote)
: 6.x
Assigned To: Jaroslav Tulach
Depends on:
  Show dependency treegraph
Reported: 2006-06-16 23:37 UTC by Nathan Fiedler
Modified: 2010-04-01 21:02 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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