On Mon, 22 Jan 2024 18:10:27 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
>Is this bug similar to >[JDK-8032219](https://bugs.openjdk.org/browse/JDK-8032219)? That bug was caused by mixing the vector-based API(lines) and rasters(fillRect). At that time we rendered the line outside of the component's bounds, and that part of the line was not cleared by the fillRect. So the fix changed how we render the lines(borders), to always render them inside the component. But in this case, it is unclear what is the actual problem. How it related to the "non-standard" fractional metrics(such as 2.3, 2.7) and why it works fine for 1.5 and 1.75. If we draw a border outside of the component that border should be fixed. If the clear/fillRect does not clear the component then we should fix the calculation of the bounds. Note the proposed patch just repaints the component using its bounds, so I assume the bounds are correct, the line is properly rendered inside of the component, and something different is broken. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17484#issuecomment-1935350083