-
-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tree refresh causes content to be truncated, v3.0 #640
Comments
Hmm, don't have this effect here. Did you set Does it work if you add following? UIManager.put( "Tree.showDefaultIcons", true ); |
No, I had not set Tree.showDefaultIcons to true. Yes, it works after adding that line! Thank you!! (Gee, that was easy). |
Still trying to understand why this happens...
In which method do you set the icon in your renderer? |
It's done in:
after calling |
You can see the code on GitHub at: GrokeSoft/ELS Version 4.0.0 ELS/src/com/groksoft/els/gui/browser/NavTreeCellRenderer.java |
…ackground if custom cell renderer sets icon, but not disabled icon, and tree is disabled (issue #640)
Found the reason for this behavior. It is because you disable the tree while updating the table model (which is fine), but the custom tree cell renderer does not have a icon for disabled state. This results in too small nodes, which were not updated when re-enabling tree. Fixed in latest |
When a JTree control is refreshed the content is truncated with trailing ellipses (...). The tree is in a JSplitPane that is significantly wider.
The previous version 2.4 worked correctly. Nothing else has changed.
FlatLaf 3.0 on Linux Mint latest running Java 8.
The text was updated successfully, but these errors were encountered: