-
Bug
-
Resolution: Fixed
-
P3
-
11, 14, 15
-
b07
-
generic
-
generic
In the test/jdk/javax/swing/GraphicsConfigNotifier/StalePreferredSize.java the next code was added to workaround this bug:
if (component instanceof JMenuItem) {
MenuItemLayoutHelper.clearUsedParentClientProperties((JMenuItem)component);
}
The MenuItemLayoutHelper.clearUsedParentClientProperties must be called automatically when the DPI was changed.
Similar bug for other components:
https://bugs.openjdk.java.net/browse/JDK-8201552
if (component instanceof JMenuItem) {
MenuItemLayoutHelper.clearUsedParentClientProperties((JMenuItem)component);
}
The MenuItemLayoutHelper.clearUsedParentClientProperties must be called automatically when the DPI was changed.
Similar bug for other components:
https://bugs.openjdk.java.net/browse/JDK-8201552