File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JavaFX and the fly likes Why size of one tree cell is so big when its graphic is ProgressIndicator? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Why size of one tree cell is so big when its graphic is ProgressIndicator?" Watch "Why size of one tree cell is so big when its graphic is ProgressIndicator?" New topic
Author

Why size of one tree cell is so big when its graphic is ProgressIndicator?

Volodymyr Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 505
    
    1

Hello!

I create TreeItem with graphic as ProgressIndicator whose max size is 16x16.

But my TreeItem appears to be bigger with empty space around graphic and label, approximately 32px in height.

Why is TreeItem size expanded when I set graphic as ProgressIndicator? But if I set normal graphic then size of TreeItem is ok.
How to control max height of TreeItem ?

Here is the image :


[treeView.PNG]



True person is moral, false is right!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Why size of one tree cell is so big when its graphic is ProgressIndicator?
 
Similar Threads
Threading from seperate class
How to register for expand event of TreeItem with no children?
java SWT application giving error while executing jar file
How to expand tree in gwt?
Sample code to drag drop buttons in Applet