On Thu, 11 Feb 2021 21:11:03 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

> For me on Windows with 200% scaling, in the first image ‘…’ is painted over 
> the transparent background whereas in the second image ‘…’ is over the 
> components opaque background.
> 
> The test passes with `uiScale=1` but I see no ‘…’ at all. Both images are 
> clipped at “.1”.

As you can see on the screenshots below, the strings are clipped differently. 
In the case where `uiScale=1`, the string is not clipped, it's displayed 
completely in the frame.
![TestBadBreak 
java-200](https://user-images.githubusercontent.com/70774172/107700672-bebbfe00-6caf-11eb-9f26-123405c9d6df.png)
![TestBadBreak 
java-100](https://user-images.githubusercontent.com/70774172/107700678-c1b6ee80-6caf-11eb-8840-697249eaf795.png)

Shall the test be modified to do some text measurement to ensure the JLabel 
cannot fit the text completely? And then paint it to the image of the 
calculated size?

As for the clipping itself, I think the first frame, the bottom one, looks 
correctly: the text is clipped right to the edge of the client area whereas the 
second frame, the upper one, leaves some whitespace.

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

PR: https://git.openjdk.java.net/jdk/pull/2502

Reply via email to