On Fri, 3 Dec 2021 19:13:08 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> You can render directly to the BufferedImage instead of the JFrame, so in >> this case, it will not be necessary to use a robot, you will be able to >> check the pixel directly. > > For example, you can take a look at the JButtonPaintNPE or TestBadBreak tests. In the TestBadBreak example, how do you know it's properly painting onto the final BufferedImage? When I try the same it doesn't seem to be painting anything on the BufferedImage, so there's no colors to compare. ------------- PR: https://git.openjdk.java.net/jdk/pull/6374