RFR: JDK-8015739: Background of JInternalFrame is located out of JInternalFrame [v5]

Harshitha Onkar honkar at openjdk.org
Wed Oct 5 00:31:55 UTC 2022


On Tue, 4 Oct 2022 19:50:15 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> It looks good to me, except for the comments I left on the coding style.
> 
> Yet there's one thing which I noticed in the rendered border. The top left corner has one pixel which is painted over the title bar. It's present in the original painting code. The top right corner has such a pixel too.
> 
> The updated code paints the top left corner with that pixel. Yet in the top right corner, it moved to left. ![top right corner of the JInternalFrame](https://user-images.githubusercontent.com/70774172/193912190-8faf432e-0bc2-4906-8811-e3780da86b9b.png)

@aivanov-jdk The extra pixel seems to be added due to JInternalFrame titlebar and not from the paintBorder() code changes. Below is the screenshot of JIF (at 300% scale) rendered when the paintBorder() code is commented out completely. It seems to match the pixel of the pattern on the title bar.

![image](https://user-images.githubusercontent.com/95945681/193954011-fefc967b-62fb-4035-8fba-7ae7db471f23.png)

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

PR: https://git.openjdk.org/jdk/pull/10274



More information about the client-libs-dev mailing list