22 */
23
24 import javax.swing.*;
25 import javax.swing.JLabel;
26 import javax.swing.JTextArea;
27 import java.awt.*;
28 import java.awt.FileDialog;
29 import java.awt.Label;
30 import java.awt.event.*;
31 import java.awt.event.KeyAdapter;
32 import java.awt.event.KeyEvent;
33 import java.io.FileWriter;
34 import java.lang.*;
35 import java.lang.Override;
36 import java.lang.String;
37 import java.lang.System;
38 import java.lang.Throwable;
39 import java.util.Hashtable;
40
41 /*
42 @test
43 @bug 8010009
44 @summary [macosx] Unable type into online word games on MacOSX
45 @author petr.pchelko : area=awt.keyboard
46 @run clean *
47 @run build TestApplet
48 @run applet/manual=yesno KeyReleasedInAppletTest.html
49 */
50
51 public class KeyReleasedInAppletTest extends JApplet {
52 private static final String TEST_HTML_NAME = "TestApplet.html";
53
54 public void init() {
55 //Create instructions for the user here, as well as set up
56 // the environment -- set the layout manager, add buttons,
57 // etc.
58 this.setLayout(new BorderLayout());
59
60 try {
61 String testFilePath = System.getProperty("test.classes");
62 FileWriter testHTML = null;
|
22 */
23
24 import javax.swing.*;
25 import javax.swing.JLabel;
26 import javax.swing.JTextArea;
27 import java.awt.*;
28 import java.awt.FileDialog;
29 import java.awt.Label;
30 import java.awt.event.*;
31 import java.awt.event.KeyAdapter;
32 import java.awt.event.KeyEvent;
33 import java.io.FileWriter;
34 import java.lang.*;
35 import java.lang.Override;
36 import java.lang.String;
37 import java.lang.System;
38 import java.lang.Throwable;
39 import java.util.Hashtable;
40
41 /*
42 @bug 8010009
43 @summary [macosx] Unable type into online word games on MacOSX
44 @author petr.pchelko : area=awt.keyboard
45 @run clean *
46 @run build TestApplet
47 @run applet/manual=yesno KeyReleasedInAppletTest.html
48 */
49
50 public class KeyReleasedInAppletTest extends JApplet {
51 private static final String TEST_HTML_NAME = "TestApplet.html";
52
53 public void init() {
54 //Create instructions for the user here, as well as set up
55 // the environment -- set the layout manager, add buttons,
56 // etc.
57 this.setLayout(new BorderLayout());
58
59 try {
60 String testFilePath = System.getProperty("test.classes");
61 FileWriter testHTML = null;
|