Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5221 > unrolled thread
| Started by | FredK <fred.l.kleinschmidt@gmail.com> |
|---|---|
| First post | 2012-08-07 14:54 -0700 |
| Last post | 2012-08-09 03:00 -0700 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.java.gui
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
| From | FredK <fred.l.kleinschmidt@gmail.com> |
|---|---|
| Date | 2012-08-07 14:54 -0700 |
| Subject | JTree indentation |
| Message-ID | <311be386-7224-45cf-bfce-d0050ba453e6@googlegroups.com> |
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).
Regardless, I tried setting either or both of these properties
with no effect.
[toc] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2012-08-07 18:22 -0400 |
| Message-ID | <jvs47o$i2i$1@dont-email.me> |
| In reply to | #5221 |
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" <http://www.rgagnon.com/javadetails/java-0398.html>
[toc] | [prev] | [next] | [standalone]
| From | FredK <fred.l.kleinschmidt@gmail.com> |
|---|---|
| Date | 2012-08-08 07:36 -0700 |
| Message-ID | <8cd692fd-0e71-4fec-b9d8-bcd6c763df44@t6g2000pbp.googlegroups.com> |
| In reply to | #5222 |
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!
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-08-09 03:00 -0700 |
| Message-ID | <8i2728pbrllc4ct3vg2gnk3r13hmcjv443@4ax.com> |
| In reply to | #5221 |
On Tue, 7 Aug 2012 14:54:43 -0700 (PDT), FredK <fred.l.kleinschmidt@gmail.com> wrote, quoted or indirectly quoted someone who said : >Regardless, I tried setting either or both of these properties >with no effect. perhaps there is something you have to do to tell it to re-render. -- Roedy Green Canadian Mind Products http://mindprod.com A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it. ~ Max Planck 1858-04-23 1947-10-04
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web