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 244003 - Space to toggle CheckableNode does not work in OutlineView when node is programmatically selected
Summary: Space to toggle CheckableNode does not work in OutlineView when node is progr...
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Martin Entlicher
Depends on:
Reported: 2014-04-22 17:03 UTC by ebakke
Modified: 2014-07-31 08:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Minimal platform application exhibiting the OutlineView bug (61.50 KB, application/zip)
2014-04-22 17:03 UTC, ebakke

Note You need to log in before you can comment on or make changes to this bug.
Description ebakke 2014-04-22 17:03:05 UTC
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.
Comment 1 Martin Entlicher 2014-07-30 11:57:42 UTC
Thanks for the test case.
The problem was, that no column was selected.
This is fixed by changeset:   276910:a4930abf6024
Comment 2 ebakke 2014-07-30 15:02:32 UTC
Ah. Thanks for fixing!
Comment 3 Quality Engineering 2014-07-31 08:59:59 UTC
Integrated into 'main-silver', will be available in build *201407310738* on (upload may still be in progress)

Log: #244003: Select the tree column when selecting rows from node selection.