NETBEANS-2543, I see there is a similar issue in the NetBeans tab component, e.g. in the editor tabs. On Windows 10, with HiDPI scaling enabled on either 150% or 200% (for example), a tab title "AaaiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiA" will overshoot its allocated space. See the attached screenshot.
Presumably this is another case where text measurement is done on a FontRenderContext that hasn't properly had the appropriate monitor's HiDPI scaling applied.