< prev index next >

test/jdk/java/awt/Focus/RequestFocusToDisabledCompTest/RequestFocusToDisabledCompTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 24,47 **** /* @test @key headful @bug 4685768 @summary Tests that it's possible to manually request focus on a disabled component. - @author Anton Tarasov: area=awt.focus @library ../../regtesthelpers @build Util @run main RequestFocusToDisabledCompTest */ import java.awt.Robot; import javax.swing.*; import java.awt.*; - import java.awt.event.*; - import java.applet.Applet; import test.java.awt.regtesthelpers.Util; ! public class RequestFocusToDisabledCompTest extends Applet { Robot robot; JFrame frame = new JFrame("Frame"); JButton b0 = new JButton("b0"); JButton b1 = new JButton("b1"); --- 24,44 ---- /* @test @key headful @bug 4685768 @summary Tests that it's possible to manually request focus on a disabled component. @library ../../regtesthelpers @build Util @run main RequestFocusToDisabledCompTest */ import java.awt.Robot; import javax.swing.*; import java.awt.*; import test.java.awt.regtesthelpers.Util; ! public class RequestFocusToDisabledCompTest { Robot robot; JFrame frame = new JFrame("Frame"); JButton b0 = new JButton("b0"); JButton b1 = new JButton("b1");
< prev index next >