Change your tree selection model to make the selection behave as you want. i.e. when clicking on a checkbox node don't change the current selection...
mySelectModel = new MySelectModel(); // which implements interface TreeSelectionModel myTree.setSelectionModel(mySelectModel); ----- Original Message ----- From: "Aradhana Singh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 08, 2001 6:48 AM Subject: JCheckBox in a jtree > > > Hi All, > I want a Jcheckbox in a all the nodes of the jtree, > The problem i'm facing is that i am able to select only one > checkbox > at a time, checking one of them deselects the other > How do i avoid that > > _______________________________________________ > Swing mailing list > [EMAIL PROTECTED] > http://eos.dk/mailman/listinfo/swing _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing