On Tue, 6 Aug 2024 11:01:52 GMT, Tejesh R <t...@openjdk.org> wrote:

>> test/jdk/java/awt/Checkbox/CheckboxCheckerScalingTest.java line 54:
>> 
>>> 52:         try {
>>> 53:             SwingUtilities.invokeAndWait(() -> {
>>> 54:                 frame = new Frame("ComboBox checker scaling test");
>> 
>> Is it possible to render the checkbox into the buffered image directly and 
>> then do the testing?
>> 
>> This way, you can avoid creating the frame, adding component to it, using 
>> robot for screen capture.
>
> I guess it can be done, anyhow will try it.

Tried it, but not able to paint it to `bufferedImage` the way it does for swing 
components. I don't see any references also which does this, except for 
print/image.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20441#discussion_r1706379453

Reply via email to