Is there an ability to select multiple tree nodes in JTree programmatically?
I’ve set multiselection mode by tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
And all I need – make my application be able to select some nodes programmatically. But I’ve didn’t found the way how to do that. Could anybody give advice how to solve this?
Thanks
1 Answer