On Mon, 6 Dec 2021 21:51:11 GMT, Alisen Chung <ach...@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

Reply via email to