hi, all

how to using swing component jtree with jcheckbox in netbeans 5.5
i have got code from this link
http://www.jroller.com/santhosh/date/20050610, but i can't combine with my project

i hope somebody give me solution for my problem.

thanks.

Recommended Answers

All 2 Replies

>how to using swing component jtree with jcheckbox in netbeans 5.5

Your IDE(netbeans) is only design to speed up and little help you with your coding. However is not there to think instead of you. The code examples on given link are clear about what they do and what you have to do in order to implement them. If you do not understand them you should check tutorials on Swing components...

Ok, its has worked, but how to make clear selection if some node hase checked.
i have code
for(int i=0; i<jTree1.getRowCount(); i++){
jTree1.expandRow(i);
jTree1.clearSelection();
}
but not result.

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.