Sets the path identifies as the lead. The lead may not be selected. The lead is not maintained by JTree , rather the UI will update it. This is a bound property. @param newPath the new lead path @since 1.3 @beaninfo bound: true description: Lead selection path
(TreePath newPath)
| 1668 | * description: Lead selection path |
| 1669 | */ |
| 1670 | public void setLeadSelectionPath(TreePath newPath) { |
| 1671 | TreePath oldValue = leadPath; |
| 1672 | |
| 1673 | leadPath = newPath; |
| 1674 | firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, newPath); |
| 1675 | |
| 1676 | if (accessibleContext != null){ |
| 1677 | ((AccessibleJTree)accessibleContext). |
| 1678 | fireActiveDescendantPropertyChange(oldValue, newPath); |
| 1679 | } |
| 1680 | } |
| 1681 | |
| 1682 | /** |
| 1683 | * Sets the path identified as the anchor. |
no test coverage detected