RFR: 8289539: The color returned by CheckBox.interiorBackground is incorrect

Tejesh R tr at openjdk.org
Tue Sep 27 10:07:23 UTC 2022


On Tue, 27 Sep 2022 09:00:35 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

> > 
> 
> There are multiple ImageCache/ImageBuffer pointers, Please point to github source code. I think we should find how this ImageCache knows why it should use "blue" colored bitmap and try to replicate the same for interiorBackgroundColor property. Since we don't have such property in other LAF's, we should avoid replicating same behaviour(of returning null) in Windows LAF.

https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/sun/swing/CachedPainter.java#L205
Here in `Image image = cache.getImage(key, config, w, h, args);` the image is been returned.

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

PR: https://git.openjdk.org/jdk/pull/10385



More information about the client-libs-dev mailing list