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.
Summary: | Space to toggle CheckableNode does not work in OutlineView when node is programmatically selected | ||
---|---|---|---|
Product: | platform | Reporter: | ebakke |
Component: | Outline&TreeTable | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Minimal platform application exhibiting the OutlineView bug |
Thanks for the test case. The problem was, that no column was selected. This is fixed by changeset: 276910:a4930abf6024 http://hg.netbeans.org/core-main/rev/a4930abf6024 Ah. Thanks for fixing! Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a4930abf6024 User: mentlicher@netbeans.org Log: #244003: Select the tree column when selecting rows from node selection. |
Created attachment 146889 [details] Minimal platform application exhibiting the OutlineView bug When OutlineView is used to display a Node that has a CheckableNode implementation in its lookup, a checkbox is shown next to the node's icon which can be toggled on or off with either a mouse click or the spacebar. However, if the node was selected programmatically (i.e. by calling ExplorerManager.setSelectedNodes) rather than by user action (mouse click or arrow keys), pressing space has no effect. The bug can be reproduced with the attached sample platform application. Immediately upon opening the application, a TopComponent containing an OutlineView will be shown. Typically the keyboard focus will be in the search box in the toolbar--press Tab once to move the focus to the OutlineView (without disturbing its row selection, which should automatically be at the second leaf node). Pressing space will have no effect on the selected node's checkbox. Only once the selection is changed will the space key start having its desired effect.