Access to checkbox of each node of a JTree

0

How can I access the checkbox for each node of a JTree ?

TreePath[] checkedPaths = checkTreeManager.getSelectionModel().getSelectionPaths();

The preceding code returns me all the selected paths. When I get back to my JTree after losing focus, I would like these paths to be selected.

I tried using the following command:

jTree1.addSelectionPaths(checkedPaths);

The question is that it selects me the line of the selected nodes and does not check me in the associated checkbox as I would like.

Does anyone know how I can solve this?

    
asked by anonymous 17.12.2014 / 13:29

0 answers