RFR: 8190264: JScrollBar ignores its border when using macOS Mac OS X Aqua look and feel [v4]
Alexey Ivanov
aivanov at openjdk.java.net
Mon Dec 6 22:27:23 UTC 2021
On Mon, 6 Dec 2021 21:51:11 GMT, Alisen Chung <achung at openjdk.org> wrote:
> 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.
How do you paint the frame into BufferedImage?
You may need to set the size of the frame explicitly.
There are many tests which paint components to the image. You can also take a look at test/jdk/javax/swing/text/FlowView/6318524/bug6318524.java and test/jdk/javax/swing/text/ParagraphView/6364882/bug6364882.java. Each of these two provides an option to save the BufferedImage to a file.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6374
More information about the client-libs-dev
mailing list