Jtree with JCheckBox

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2007
Posts: 34
Reputation: onsir is an unknown quantity at this point 
Solved Threads: 1
onsir onsir is offline Offline
Light Poster

Jtree with JCheckBox

 
0
  #1
Jul 25th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,217
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 489
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Jtree with JCheckBox

 
0
  #2
Jul 25th, 2007
>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...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 34
Reputation: onsir is an unknown quantity at this point 
Solved Threads: 1
onsir onsir is offline Offline
Light Poster

Re: Jtree with JCheckBox

 
0
  #3
Jul 26th, 2007
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC