I ran this Swing MenuSelectionManagerDemo using Java 9 and Windows 10, and the problems that arise cause problems. See Two screenshots below, where I ran with the scaling set to 100% and 125% respectively.
As I noted in a comment on the OP, it looks like this was fixed by a JDK bug fix a few months ago, which I believe was raised by the OP:
https://bugs.openjdk.java.net/browse/JDK-8174845
Another small problem that is worth noting is that changing the Windows settings from 100% to 125% is a change in “Scaling and Layout” and “Resizing Text, Applications, and Other Elements ”. (i.e., this is much more than just changing the font, as indicated in the answer to the JDK error.)


skomisa
source share