RFR: 8258979: The image didn't show correctly with GTK LAF [v4]

Abhishek Kumar abhiscxk at openjdk.org
Thu Jan 11 05:21:51 UTC 2024


On Wed, 10 Jan 2024 12:31:57 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> I tried with this approach first but images didn't render at all.
>
> I guess those might be null at class initialisation stage so it didn't render..you can try 
> 
> expandedIconWrapper = new IconWrapper(expandedIcon);
> collapsedIconWrappr - new IconWrapper(collapsedICon);
> 
> in updateStyle() where it sets
> 
> setExpandedIcon(style.getIcon(context, "Tree.expandedIcon"));
> setCollapsedIcon(style.getIcon(context, "Tree.collapsedIcon"));

Updated.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/17294#discussion_r1448302768


More information about the client-libs-dev mailing list