Integrated: 8258979: The image didn't show correctly with GTK LAF
Abhishek Kumar
abhiscxk at openjdk.org
Fri Jan 12 07:56:29 UTC 2024
On Mon, 8 Jan 2024 07:29:13 GMT, Abhishek Kumar <abhiscxk at 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 .
This pull request has now been integrated.
Changeset: 82a63a03
Author: Abhishek Kumar <abhiscxk at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/82a63a03c0155288e8e43b9f766c8be70be50b6a
Stats: 276 lines in 4 files changed: 139 ins; 132 del; 5 mod
8258979: The image didn't show correctly with GTK LAF
Reviewed-by: psadhukhan, tr
-------------
PR: https://git.openjdk.org/jdk/pull/17294
More information about the client-libs-dev
mailing list