On Thu, 16 Nov 2023 06:50:36 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> I couldn't understand. Can you please explain a bit more?
>
> It is not necessary to add the progress bar to the frame and then capture the 
> pixels by the robot. you can render content of the progress bar directly to 
> the BufferedImage.

There are a number of tests which do this, scaled borders are those that come 
to my mind first:

https://github.com/openjdk/jdk/blob/1d9688667e667dc710d64e52f1e918e047beaca3/test/jdk/javax/swing/border/EtchedBorder/ScaledEtchedBorderTest.java#L300-L311

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16467#discussion_r1395615748

Reply via email to