Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.gui Subject: Re: JTree indentation Date: Tue, 07 Aug 2012 18:22:24 -0400 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: <311be386-7224-45cf-bfce-d0050ba453e6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 7 Aug 2012 22:18:32 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="6a6a291fa7e9c0bd872c1a9cbe2b371d"; logging-data="18514"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hc44yEzLc+TDR+e+186IZFQeXbkfV0j4=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120613 Icedove/3.0.11 In-Reply-To: <311be386-7224-45cf-bfce-d0050ba453e6@googlegroups.com> Cancel-Lock: sha1:bCbLtRjS0BJKZ1Jsp4REsPEaSvc= Xref: csiph.com comp.lang.java.gui:5222 On 08/07/2012 05:54 PM, FredK wrote: > How do I control the amount of indentation for a JTree? > > I have found documentation for properties "Tree.leftChildIndent" > and "Tree.rightTreeIndent" that is confusing to me as to what > they do. The documentation for leftChildIndent says: > > This plus Tree.rightChildIndent account for the > total space, along the y axis, to offset nodes > from their parent. > > I don't understand this. Indentation is horizontal (along the > x axis, not y). Please provide a pointer to the documentation you found. > > Regardless, I tried setting either or both of these properties > with no effect. Please provide a small compilable code example that demonstrates the problem. The first hit for a web search using; "How do I control the amount of indentation for a JTree"