On Wed, 8 Feb 2023 21:08:39 GMT, Damon Nguyen <[email protected]> wrote:
> > > I created an automated test, but for some L&F's (such as Nimbus), an > > > enabled vs disabled ComboBox differs in more than just the text color. > > > The background, border, and button color may change as well > > > > > > Then can we not compare the comboBox without DLCR with comboBox with DLCR > > when both are disabled...both should be same as per your screenshot > > A comboBox with DLCR is slightly smaller than one without DLCR (138x25 vs > 140x25). If I force the same dimensions with setSize, the RGB values are > slightly off. If these comboBoxes are supposed to exactly match in > dimensions, they currently don't, and this is due to what would be a separate > bug if so. maybe you can try to compare the mid scanline rather than the whole rectangle ------------- PR: https://git.openjdk.org/jdk/pull/12390
