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.
Created attachment 133431 [details] clicks over tree itens For example, when I'm working on the Projects tree view, a selected item is highlighted fully, covering the whole width of the view. But to select another item in the tree view, it only works when I click on the text of the item, not on the "line" of the item. On the attached image, I have marked 4 points of click and their behaviour: (yellow) selects the item "Issue Trackers" (green) selects the item "Hudson Builders" (blue) does NOT select the item "Cloud" (red) does NOT select the item "Servers"
Unless Standa knows an easy way to achieve this in standard Swing, we'll assume this is standard Swing behavior that we just accept in explorer.
So I assume that the status should not be "FIXED", as this is not going to be fixed at all.
Accordin to this article, it is possible to achieve the "correct" behaviour: http://tuxicity.se/java/jtree/swing/2009/09/06/select-whole-row-in-jtree.html
That's how Swing works. Please file a bug against JDK if you want it fixed.
Don't see this as Swing bug, but as a poor UX of NetBeans. This might be the default Swing behaviour, but Swing offers a way to improve the user experience, as presented in the referenced article. Sorry if saying that "correct behaviour" led to a misunderstanding of this issue. On a sidenote, I doubt Swing team will change the default behaviour. But NetBeans could definitely improve its UX.
Created attachment 133733 [details] Trivial patch Claiming "this is standard Swing behavior" isn't really an excuse - there are already plenty of places where explorer trees customize that behavior (right click outside the tree, continuation tooltips, double-click behavior, the timer that makes all single clicks not result in a rename operation). In fact, the attached patch adds its behavior to existing code which makes double-clicking already behave the way Bruno is suggesting - this just adds it for single clicks.
The patch might be trivial but it doesn't address all full-row select issues - it doesn't initiate dnd when clicked outside the cell area, doesn't expand on double-click, doesn't show popup menu etc. It has also unwanted side-effect that clicking expansion icon selects the tree row.