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 / January 2006

Tip: Looking for answers? Try searching our database.

hiding the root icon in Jtree

Thread view: 
Roedy Green - 26 Jan 2006 06:41 GMT
somebody posted a way to hide the root icon of a Jtree. Does anyone
recall what it was?
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Bart Cremers - 26 Jan 2006 07:33 GMT
See JTree.setRootVisible(boolean) and JTree.isRootVisible().

Bart
Roedy Green - 26 Jan 2006 09:05 GMT
>See JTree.setRootVisible(boolean) and JTree.isRootVisible().

Great. The only thing wrong is the little widgets to let you know the
new "roots" are openable have disappeared.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Rogan Dawes - 26 Jan 2006 11:14 GMT
>> See JTree.setRootVisible(boolean) and JTree.isRootVisible().
>
> Great. The only thing wrong is the little widgets to let you know the
> new "roots" are openable have disappeared.

        tree.setShowsRootHandles(true);

Rogan
Brandon McCombs - 29 Jan 2006 02:10 GMT
> somebody posted a way to hide the root icon of a Jtree. Does anyone
> recall what it was?

take a look at the JTree docs on suns website. It has all the methods
mentioned in this thread plus a whole lot more.
Roedy Green - 29 Jan 2006 02:21 GMT
>> somebody posted a way to hide the root icon of a Jtree. Does anyone
>> recall what it was?
>
>take a look at the JTree docs on suns website. It has all the methods
>mentioned in this thread plus a whole lot more.

the mistake I was making was looking at DefaultTreeNode rather than
Jtree itself.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



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.