How to know whether a CheckNode in a JTree is actually selected or not
I have implemented a JTree with CheckNodes as DefaultMutableTreeNodes.The TreeCellRenderer for the JTree contains a JCheckBox and a JLabel for each checknode.
I need to know whether a checknode is actually selected (i.e. checkbox.isSelected() ) rather than whether the node row is actually selected. That is, I need to know the user selection, whether the checkbox inside the checknode is selected or not.
Is there a way to achieve this? Any help will be appreciated.