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 * Portions Copyright (c) 2012 IBM Corporation
26 */
27
28 /* @test
29 * @bug 7155298
30 * @run main/othervm/timeout=60 TestDispose
31 * @summary Editable TextField blocks GUI application from exit.
32 * @author Sean Chou
33 */
34
35 import java.awt.FlowLayout;
36 import java.awt.Frame;
37 import java.awt.TextField;
38 import java.awt.Robot;
39 import java.lang.reflect.InvocationTargetException;
40
41 import javax.swing.JFrame;
42 import javax.swing.SwingUtilities;
43
44 public class TestDispose {
45
46 public static Frame frame = null;
47 public static TextField textField = null;
48 public static volatile Process worker = null;
49
|
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 * Portions Copyright (c) 2012 IBM Corporation
26 */
27
28 /* @test
29 * @bug 7155298
30 * @key headful
31 * @run main/othervm/timeout=60 TestDispose
32 * @summary Editable TextField blocks GUI application from exit.
33 * @author Sean Chou
34 */
35
36 import java.awt.FlowLayout;
37 import java.awt.Frame;
38 import java.awt.TextField;
39 import java.awt.Robot;
40 import java.lang.reflect.InvocationTargetException;
41
42 import javax.swing.JFrame;
43 import javax.swing.SwingUtilities;
44
45 public class TestDispose {
46
47 public static Frame frame = null;
48 public static TextField textField = null;
49 public static volatile Process worker = null;
50
|