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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2090
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!
I agree. Here's the link:
subject: JTree UI
Similar Threads
java has the address of a variable´╝č and what is the meaning of the instance count?
Help parse using JAXP
NULL values in FK field
XSLT - is it possible?
Naming convention for methods with JUnit