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 @test
26 @bug 8041928 8158616
27 @summary Confirm that the Alt-Gr Modifier bit is set correctly.
28 @requires (os.family != "windows" & os.family != "mac")
29 @run main/manual AltGraphModifierTest
30 */
31
32 import java.awt.Button;
33 import java.awt.Dialog;
34 import java.awt.Frame;
35 import java.awt.Panel;
36 import java.awt.TextArea;
37 import java.awt.event.ActionEvent;
38 import java.awt.event.ActionListener;
39 import java.awt.event.InputEvent;
40 import java.awt.event.MouseAdapter;
41 import java.awt.event.MouseEvent;
42
43 public class AltGraphModifierTest {
44 private static void init() throws Exception {
45 String[] instructions
46 = {
47 "This test is for verifying Alt-Gr modifier of an event.",
48 "Linux :-",
|
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 @test
26 @bug 8041928 8158616
27 @summary Confirm that the Alt-Gr Modifier bit is set correctly.
28 @run main/manual AltGraphModifierTest
29 */
30
31 import java.awt.Button;
32 import java.awt.Dialog;
33 import java.awt.Frame;
34 import java.awt.Panel;
35 import java.awt.TextArea;
36 import java.awt.event.ActionEvent;
37 import java.awt.event.ActionListener;
38 import java.awt.event.InputEvent;
39 import java.awt.event.MouseAdapter;
40 import java.awt.event.MouseEvent;
41
42 public class AltGraphModifierTest {
43 private static void init() throws Exception {
44 String[] instructions
45 = {
46 "This test is for verifying Alt-Gr modifier of an event.",
47 "Linux :-",
|