test/jdk/javax/swing/JInternalFrame/8020708/bug8020708.java
changeset 49216 577f96d4f3c9
parent 47216 71c04702a3d5
equal deleted inserted replaced
49215:0ce74d78f58c 49216:577f96d4f3c9
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    34 import javax.swing.UIManager;
    34 import javax.swing.UIManager;
    35 
    35 
    36 /**
    36 /**
    37  * @test
    37  * @test
    38  * @key headful
    38  * @key headful
    39  * @bug 8020708 8032568
    39  * @bug 8020708 8032568 8194943
    40  * @author Alexander Scherbatiy
    40  * @author Alexander Scherbatiy
    41  * @summary NLS: mnemonics missing in SwingSet2/JInternalFrame demo
    41  * @summary NLS: mnemonics missing in SwingSet2/JInternalFrame demo
    42  * @library ../../regtesthelpers
    42  * @library ../../regtesthelpers
    43  * @build Util
    43  * @build Util
    44  * @run main bug8020708
    44  * @run main bug8020708
   108         robot.mouseMove(clickPoint.x, clickPoint.y);
   108         robot.mouseMove(clickPoint.x, clickPoint.y);
   109         robot.mousePress(InputEvent.BUTTON1_MASK);
   109         robot.mousePress(InputEvent.BUTTON1_MASK);
   110         robot.mouseRelease(InputEvent.BUTTON1_MASK);
   110         robot.mouseRelease(InputEvent.BUTTON1_MASK);
   111         robot.waitForIdle();
   111         robot.waitForIdle();
   112 
   112 
   113         Util.hitKeys(robot, KeyEvent.VK_CONTROL, KeyEvent.VK_SPACE);
   113         Util.hitKeys(robot, KeyEvent.VK_SHIFT, KeyEvent.VK_ESCAPE);
   114         robot.waitForIdle();
   114         robot.waitForIdle();
   115         int keyCode = KeyEvent.VK_C;
   115         int keyCode = KeyEvent.VK_C;
   116         String mnemonic = UIManager
   116         String mnemonic = UIManager
   117                 .getString("InternalFrameTitlePane.closeButton.mnemonic");
   117                 .getString("InternalFrameTitlePane.closeButton.mnemonic");
   118         try {
   118         try {