RFR: 8224261: JProgressBar always with border painted around it
Alexey Ivanov
aivanov at openjdk.org
Thu Nov 16 12:25:30 UTC 2023
On Thu, 16 Nov 2023 06:50:36 GMT, Sergey Bylokhov <serb at 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
More information about the client-libs-dev
mailing list