On Mon, 8 Jan 2024 07:29:13 GMT, Abhishek Kumar <abhis...@openjdk.org> wrote:
> The collapsed icon for JTree is not painted using `Icon.paintIcon(Component > c, Graphics g, int x, int y)` in GTK LAF. The collapsed icon is returned from > BasicTreeUI class which doesn't contain any icon image whereas the expanded > icon is returned from SynthTreeUI class and expanded icon is rendered > correctly. > The proposed fix is to return collapsed icon as an object of collapsed icon > wrapper which implements synthIcon and is similar to the expanded icon > implementation. > > Test mentioned in JBS is an applet based which is converted to main based now > and extended for all installed LAFs on the system. > > No regression caused with the fix, link is attached in JBS . JBS image suggests that no image is rendered either for collapsed or expanded icon for Ubuntu20.10-x64 but it seems you are seeing expanded icon but not collapsed icon, is that correct? WHich ubuntu you tested against? Did you check on ubuntu 20.10 in case ------------- PR Comment: https://git.openjdk.org/jdk/pull/17294#issuecomment-1880580485