How can I check which items are selected from a checkboxTree
?
I've had to search and I know this code returns the last selected:
DefaultMutableTreeNode node = (DefaultMutableTreeNode) checkboxTree1.getLastSelectedPathComponent();
Is there any way to know the nodes names of the selected checkboxes?
Inthiscasesomethingthatreturnsme"Colors, blue, red".