-
Notifications
You must be signed in to change notification settings - Fork 235
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
when i use WebCheckBoxTree #702
Comments
The "folder" and "leaf" icons are coming from the usual cell renderer and can be modified by providing a custom cell renderer into the tree the same way you do it with any other normal tree. The check icon is hidden in the cell renderer that wraps provided one to add |
when i use WebTristateCheckBox checkBox =tree.getCheckBoxCellRenderer().getCheckBox(); and set icon ,state change icon don not change ,why ? WebTristateCheckBox checkBox =tree.getCheckBoxCellRenderer().getCheckBox(); |
WebLaF tristate checkbox doesn't use those icons to paint its states - instead it uses a custom icon installed by the Unfortunately I don't have a good/quick solution for this except for suggesting to use custom style for the tree/tristatecheckbox instead of custom icons. Checkboxes were implemented in this way in advance to avoid limitations of multiple icons usage for when state animations will be implemented for the component styles.
This is a good catch, it is indeed a bug - the +/- icons are basically hardcoded in |
there has some problem, how to change this icon? in WebCheckBoxTree
The text was updated successfully, but these errors were encountered: