Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: JTree/TreeCellRenderer large image grief



---- Gregory Pierce wrote: -----
Hoping someone can help me here. I have a JTree that has a custom  
TreeCellRenderer. The component that I'm returning is just a regular  
old JLabel. When I set the image which is of size 64x64, the image is  
being cropped. If I set the size of the Jlabel to have a height of 64  
- its still cropped.
--------------------------------


JTree.setRowHeight( int pixels ) may help.  The drawback here is that it
applies to all rows in the tree, including branch nodes.

-Krista Miller


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.