Sets the value of the showsRootHandles property, which specifies whether the node handles should be displayed. The default value of this property depends on the constructor used to create the JTree . Some look and feels might not support handles; they will ignore this proper
(boolean newValue)
| 943 | * displayed. |
| 944 | */ |
| 945 | public void setShowsRootHandles(boolean newValue) { |
| 946 | boolean oldValue = showsRootHandles; |
| 947 | TreeModel model = getModel(); |
| 948 | |
| 949 | showsRootHandles = newValue; |
| 950 | showsRootHandlesSet = true; |
| 951 | firePropertyChange(SHOWS_ROOT_HANDLES_PROPERTY, oldValue, |
| 952 | showsRootHandles); |
| 953 | if (accessibleContext != null) { |
| 954 | ((AccessibleJTree)accessibleContext).fireVisibleDataPropertyChange(); |
| 955 | } |
| 956 | invalidate(); |
| 957 | } |
| 958 | |
| 959 | /** |
| 960 | * Returns the value of the <code>showsRootHandles</code> property. |
no test coverage detected