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: | bad ListSelectionEvent after outline.expandPath | ||
---|---|---|---|
Product: | platform | Reporter: | err <err> |
Component: | Outline&TreeTable | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED INCOMPLETE | ||
Severity: | normal | Keywords: | REGRESSION |
Priority: | P3 | ||
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
err
2011-08-10 17:45:05 UTC
Forgot to say... Single selection mode. Every call to expand path produces an out of bounds selection, no matter the expand/collapse state of all the various nodes in the tree. It looks like this might be a problem of the layout, which translates paths to the row number. We'd need some more detailed description or better a test case to be able to have a better insight into this problem. The event passed to tableChanged() is TableModelEvent.INSERT, which is constructed at EventBroadcaster.java:689 in method private TableModelEvent translateEvent (TreeExpansionEvent e, boolean expand) firstRow is set to getLayout().getRowForPath(path) + 1, therefore if it's too big, it's a problem of the layout. Where is the output code placed? This is not clear from the report. |