RFR: JDK-8015739: Background of JInternalFrame is located out of JInternalFrame [v2]
Harshitha Onkar
honkar at openjdk.org
Wed Sep 21 17:50:38 UTC 2022
On Tue, 20 Sep 2022 18:22:20 GMT, Alexander Zuev <kizune at openjdk.org> wrote:
>> Harshitha Onkar has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:
>>
>> - Merge branch 'master' into JIFBorder_8015739
>> - added test summary
>> - updated test case
>> - Added test case, minor position changes to shadow lines
>> - expanded imports
>> - JIF Metal Border Scaling - Initial changes
>
> src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBorders.java line 277:
>
>> 275: }
>> 276:
>> 277: Graphics2D g2d = (Graphics2D) g;
>
> Regardless, i see that absolutely similar code down this file for FrameBorder and DialogBorder. Are these UI elements suffer from the same issue or is it only limited to InternalFrame? If they do suffer from the same issue i would suggest either fixing it all together or at least submitting new bugs tracking existence of the problem. Of course problem might not be present for some reason in these components but it is worth checking it out while you are working on the code and remember all the details.
@azuev-java Sure. I'll check if there is any observable distortion in other components and either make changes as part of this PR or track it under JDK-8282958. Currently there exists a generic umbrella issue created for border scaling issue - [JDK-8282958](https://bugs.openjdk.org/browse/JDK-8282958), all the related issues are linked to it. The plan is to create a utility method (for common steps) that can be reused across components where this border rendering issue is observed.
-------------
PR: https://git.openjdk.org/jdk/pull/10274
More information about the client-libs-dev
mailing list