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

Harshitha Onkar honkar at openjdk.org
Fri Oct 21 22:21:09 UTC 2022


> JInternalFrame background color seems to overflow into the border region. This issue is more prominently seen on Windows - Metal LAF (with fractional scaling, as shown below). The primary reason is border scaling issue as observed in - [JDK-8279614](https://bugs.openjdk.org/browse/JDK-8279614) 
> 
> The fix involves a similar approach as described here https://github.com/openjdk/jdk/pull/7449#issuecomment-1068218648. The test checks the midpoint and corners of borders to check if the internal frame's background color is located out of JInternalFrame.
> 
> ![image](https://user-images.githubusercontent.com/95945681/190233555-a7e00f2c-9003-4c11-84fb-207957838c2f.png)

Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision:

  new x,y and translate component added to fix pixel painting issue

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/10274/files
  - new: https://git.openjdk.org/jdk/pull/10274/files/99664b3b..4fa34904

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10274&range=10
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10274&range=09-10

  Stats: 11 lines in 1 file changed: 3 ins; 0 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/10274.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10274/head:pull/10274

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



More information about the client-libs-dev mailing list