7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24
25 /*
26 * @test
27 * @bug 8043126 8145116
28 * @summary Check whether
29 * 1. correct extended modifiers are returned
30 * by KeyEvent.getModifiersEx()
31 * 2. InputEvent.getModifiersExText() returns
32 * correct extended modifier keys description
33 *
34 * @library ../../../../../lib/testlibrary/ ../../helpers/lwcomponents/
35 * @build LWComponent
36 * @build LWButton
37 * @build LWList
38 * @build ExtendedRobot
39 * @run main/timeout=600 ExtendedModifiersTest
40 */
41 import java.awt.Button;
42 import java.awt.Color;
43 import java.awt.Component;
44 import java.awt.EventQueue;
45 import java.awt.Frame;
46 import java.awt.GridLayout;
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24
25 /*
26 * @test
27 * @key headful
28 * @bug 8043126 8145116
29 * @summary Check whether
30 * 1. correct extended modifiers are returned
31 * by KeyEvent.getModifiersEx()
32 * 2. InputEvent.getModifiersExText() returns
33 * correct extended modifier keys description
34 *
35 * @library ../../../../../lib/testlibrary/ ../../helpers/lwcomponents/
36 * @build LWComponent
37 * @build LWButton
38 * @build LWList
39 * @build ExtendedRobot
40 * @run main/timeout=600 ExtendedModifiersTest
41 */
42 import java.awt.Button;
43 import java.awt.Color;
44 import java.awt.Component;
45 import java.awt.EventQueue;
46 import java.awt.Frame;
47 import java.awt.GridLayout;
|