These two commits fix one issue and improve the library in another regard.
The listeners in the DarculaTextFieldUI classes weren't properly added and removed when the L&F was changed. Instead they were only added. This led to NPEs when changing the L&F and then opening the search field popup, as getComponent() returned null.
I couldn't find a way to create a button that only displays the icon. It turned out that the contentAreaFilled property was not honored. I added a flag to the code that make sure the rounded rectangle is not drawn, when contentAreaFilled==false.
These two commits fix one issue and improve the library in another regard.
DarculaTextFieldUI
classes weren't properly added and removed when the L&F was changed. Instead they were only added. This led to NPEs when changing the L&F and then opening the search field popup, as getComponent() returnednull
.contentAreaFilled
property was not honored. I added a flag to the code that make sure the rounded rectangle is not drawn, whencontentAreaFilled==false
.I'd appreciate it, if you merged the two changes.
Thanks.