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 Intercell spacing in cell in tree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Intercell spacing in cell in tree" Watch "Intercell spacing in cell in tree" New topic

Intercell spacing in cell in tree

Bhagya Tangutur
Ranch Hand

Joined: Oct 21, 2002
Posts: 88
how can i increase the intercell spacing in tree.Right now i am setting Empty border to increase the intercell spacing.I guess it is hit on performance.please let me know ,if any better way of doing it.

Sun Certified Java Programmer
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

How are you adding the border? I've run the code below through a profiler, and adding an empty border actually made the memory footprint go *down* due to less cells being able to be displayed on the screen...

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Intercell spacing in cell in tree
It's not a secret anymore!