Article View: borland.public.jbuilder.java.swing
Article #310Re: Collapse a JTree
From: Arthur Ore
Date: Fri, 29 Jul 2005 23:26
Date: Fri, 29 Jul 2005 23:26
5 lines
1119 bytes
1119 bytes
I should have added as you asked the question
TreePath top = tree.getPathForRow(0);
tree.collapsePath(top);
tree.updateUI();
Technical Details
Message-ID:
<42eabb32$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42e8f26e$1@newsgroups.borland.com> <42eaba53@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,ee6bedc9e28b1fb3 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Arthur Ore" <nospamthx_arthur@nospamthx.co.uk> Newsgroups: borland.public.jbuilder.java.swing References: <42e8f26e$1@newsgroups.borland.com> <42eaba53@newsgroups.borland.com> Subject: Re: Collapse a JTree Date: Sat, 30 Jul 2005 00:26:49 +0100 Lines: 7 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 NNTP-Posting-Host: 82.69.65.131 Message-ID: <42eabb32$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1122679602 82.69.65.131 (29 Jul 2005 16:26:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail