Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2005

Tip: Looking for answers? Try searching our database.

How to add checkboxes to a JTree?

Thread view: 
brightoceanlight@hotmail.com - 13 Feb 2005 12:07 GMT
I've seen it done but haven't been able to find anything in the
documentation.  When you open the nodes in a JTree, rather than listing
just files, there are checkboxes.

Would anyone know how this is done?
Korhan - 13 Feb 2005 13:43 GMT
see sample code under http://www.codeguru.com/java/articles/185.shtml

Korhan
Gil - 18 Feb 2005 13:32 GMT
> see sample code under http://www.codeguru.com/java/articles/185.shtml
>
> Korhan

Thanks for the link!  It's basically what I'm looking for.  But, it
seems this CheckNode functionality is inside a package called :

import jp.gr.java_conf.tame.swing.tree.*;

Would you know where I can get this package?

Thank you,

Gil
Thomas Weidenfeller - 18 Feb 2005 13:48 GMT
> import jp.gr.java_conf.tame.swing.tree.*;

Sounds like you want the "Tame Swing" examples. See the group's FAQ
(link in my sig). There is a pointer in it.

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq

Nurul Hidayah - 23 Feb 2005 01:28 GMT
hii

i would like to have a sample coding in creating aJTree from JTree model
i have drag n edit the source code but the result is the new tree doesn't
appear n it is still using the default jtree model..

when i try to move the jtree from 1 place to another.. the new jtree appear
but when  i run it.. it still view default jtree
Thomas Fritsch - 18 Feb 2005 14:14 GMT
>>see sample code under http://www.codeguru.com/java/articles/185.shtml
>>
[quoted text clipped - 10 lines]
>
> Gil

You download the "tame.swing" sources from
http://www.physci.org/codes/tame/index.jsp

Thomas
Signature

"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.