File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JTree UI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree UI" Watch "JTree UI" New topic

JTree UI

Nike Smith

Joined: Oct 05, 2007
Posts: 11
Does someone know how to move icons further left?

Let's say, I have a tree

and I want it to look similar to this:

Thanks for any ideas.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2334
Take a look at the UIManager Defaults. I've never tried it, but the "rightChildIndent" (or leftChildIndent, I don't know what the difference is) might be what you are looking for.
Nike Smith

Joined: Oct 05, 2007
Posts: 11
Thank you, Rob!
It is sorta covered in the JavaRanch Style Guide.
subject: JTree UI