--- old/test/javax/swing/plaf/windows/WindowsRootPaneUI/WrongAltProcessing/WrongAltProcessing.java 2013-11-15 21:04:35.631597500 +0400 +++ new/test/javax/swing/plaf/windows/WindowsRootPaneUI/WrongAltProcessing/WrongAltProcessing.java 2013-11-15 21:04:34.772488400 +0400 @@ -22,7 +22,7 @@ */ /* @test - @bug 8001633 + @bug 8001633 8028271 @summary Wrong alt processing during switching between windows @author mikhail.cherkasov@oracle.com @run main WrongAltProcessing @@ -76,7 +76,7 @@ private static void clickWindowsTitle(JFrame frame) { Point point = frame.getLocationOnScreen(); - robot.mouseMove(point.x + (frame.getWidth() / 2), point.y + 5); + robot.mouseMove(point.x + (frame.getWidth() / 2), point.y + 10); robot.mousePress(InputEvent.BUTTON1_MASK); robot.mouseRelease(InputEvent.BUTTON1_MASK); } @@ -112,6 +112,7 @@ public static void createWindows() { firstFrame = new JFrame("Frame"); firstFrame.setLayout(new FlowLayout()); + firstFrame.setPreferredSize(new Dimension(600,100)); JMenuBar bar = new JMenuBar(); JMenu menu = new JMenu("File"); @@ -146,6 +147,7 @@ firstFrame.pack(); secondFrame = new JFrame("Frame 2"); + secondFrame.setPreferredSize(new Dimension(600,100)); secondFrame.setLocation(0, 150); secondFrameTf = new JTextField(20); secondFrame.add(secondFrameTf);