I am putting JCheckBox(es) in the nodes of a javax.swing.JTree, by implementing TreeCellRenderer, but have not succeeded in getting those JCheckBoxes to respond to mouse clicks.

Since the getTreeCellRendererComponent() method of TreeCellRenderer returns a Component, which can normally be a JPanel containing controls, I figured it was fair game to put JCheckBoxes and other controls inside the returned Component. But right now it appears that the JTree is capturing the mouse clicks over the JCheckBoxes, and my poor JCheckBoxes never even hear about it.

Any suggestions?

Thanks,
Rich Hammer

_______________________________________________
Juglist mailing list
[email protected]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to