Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5223
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!t6g2000pbp.googlegroups.com!not-for-mail |
|---|---|
| From | FredK <fred.l.kleinschmidt@gmail.com> |
| Newsgroups | comp.lang.java.gui |
| Subject | Re: JTree indentation |
| Date | Wed, 8 Aug 2012 07:36:42 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 37 |
| Message-ID | <8cd692fd-0e71-4fec-b9d8-bcd6c763df44@t6g2000pbp.googlegroups.com> (permalink) |
| References | <311be386-7224-45cf-bfce-d0050ba453e6@googlegroups.com> <jvs47o$i2i$1@dont-email.me> |
| NNTP-Posting-Host | 130.76.32.209 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1344436602 30301 127.0.0.1 (8 Aug 2012 14:36:42 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Wed, 8 Aug 2012 14:36:42 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | t6g2000pbp.googlegroups.com; posting-host=130.76.32.209; posting-account=_7xgmwoAAADi7iXKBO-oX5zbCfSzsCV0 |
| User-Agent | G2/1.0 |
| X-HTTP-UserAgent | Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2),gzip(gfe) |
| X-Received-Bytes | 2438 |
| Xref | csiph.com comp.lang.java.gui:5223 |
Show key headers only | View raw
On Aug 7, 6:22 pm, Jeff Higgins <j...@invalid.invalid> wrote: > 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. > See: http://docs.oracle.com/javase/1.5.0/docs/api/javax/swing/plaf/synth/doc-files/componentProperties.html > > > > 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" > <http://www.rgagnon.com/javadetails/java-0398.html> The suggestion there works. Thanks!
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JTree indentation FredK <fred.l.kleinschmidt@gmail.com> - 2012-08-07 14:54 -0700
Re: JTree indentation Jeff Higgins <jeff@invalid.invalid> - 2012-08-07 18:22 -0400
Re: JTree indentation FredK <fred.l.kleinschmidt@gmail.com> - 2012-08-08 07:36 -0700
Re: JTree indentation Roedy Green <see_website@mindprod.com.invalid> - 2012-08-09 03:00 -0700
csiph-web