-
Notifications
You must be signed in to change notification settings - Fork 41
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
[JTable] TableCellRenderer behaviour different to vanilla swing #164
Comments
This obviously depends on the backward compatibility requirements for darklaf, but this would be the least surprising behaviour for a developer migrating from vanilla Swing. From my perspective, documenting the behaviour difference would be enough.
Yes, agreed, the decorator approach is quite neat. Unfortunately codebases out there (including HO) are a lot more complex than my little repro class, and tend to implement |
Describe the bug
When setting a
TableCellRenderer
forObject.class
and that the model returns classjava.lang.String
(for example), the renderer does not revert to the defaultObject
renderer:This differs in behaviour from plain Swing where the
Object
renderer is used if no renderer forString
has been set:Getting around the issue is straightforward enough for my case (defining the renderer for the specific type), but this behaviour change may cause issues for people adopting darklaf.
To Reproduce
See https://gist.github.com/tychobrailleur/3bbde9442bfd2615049c1968723f6f3b
Commenting out the
LafManager.install(new DarculaTheme());
line causes theDarkTableCellRenderer
to be used.Screenshots
See above
Additional Information:
Additional context
N/A
The text was updated successfully, but these errors were encountered: