The conversion between the values (Strings) given in the tests and the values
actually displayed by the JTree renderer is performed by a dedicated
TreeCellValueConverter , which retrieves the graphical component that draws
the tree nodes and determines the displayed value accordingly.
A
DefaultTreeCellValueConverter is used by default by the Tree component.
The "bold" property must be present if and only if the node text is bold
The "color" property value can be numeric ("0000ee") or approximative ("blue")
(see the Using colors page
for more information)
The "bold" property, if present, must be placed before the "color" property
expand
public void expand(String path, boolean expand)(Code)
Expands or collapses a given node.
Parameters: path - a String identifying the path to be expanded or collapsed Parameters: expand - if true, expand the node, and collapse it otherwise
Checks that the a given node of the jTree is expanded - i.e. that its children are made visible.
Parameters: path - a String identifying the path to be expanded or collapsed
removeFromSelection
public void removeFromSelection(String path)(Code)
Removes the given node from the current jTree selection.
Selects under a given parent all the nodes whose name contains a given substring.
This method will throw an exception if no the parent path was invalid or if no children
were found.