Border line is seen outside round Rectangle both for JInternalFrame backgroundShadowBorder & foregroundShadowBorder line in mac L&F. 
I have circled the extra part of the line. To make it more visible I changed the color of the backgroundShadowBorder to red  Fixed the extra length of the line  ------------- Commit messages: - 8292738 : JInternalFrame backgroundShadowBorder & foregroundShadowBorder line is longer in Mac Look and Feel Changes: https://git.openjdk.org/jdk/pull/9971/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9971&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8292738 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/9971.diff Fetch: git fetch https://git.openjdk.org/jdk pull/9971/head:pull/9971 PR: https://git.openjdk.org/jdk/pull/9971