diff --git a/test/jdk/java/awt/Focus/TestWindowsLFFocus.java b/test/jdk/java/awt/Focus/TestWindowsLFFocus.java index 1019702722052..795615434b632 100644 --- a/test/jdk/java/awt/Focus/TestWindowsLFFocus.java +++ b/test/jdk/java/awt/Focus/TestWindowsLFFocus.java @@ -100,7 +100,7 @@ private static void test() throws Exception { SwingUtilities.invokeAndWait(() -> { Point location = new Point(frameLoc); - location.y += bar.getHeight() / 2 + item.getHeight() / 2; + location.y += bar.getHeight() / 2 + item.getHeight() / 2; frameLoc = location; });