This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
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

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: 2310
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