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 import javax.swing.*;
26
27 /**
28 * AWT/Swing overlapping test for {@link javax.swing.JButton } component in GlassPane.
29 * <p>See base class for details.
30 */
31 /*
32 @test
33 @summary Simple Overlapping test for javax.swing.JButton
34 @author sergey.grinev@oracle.com: area=awt.mixing
35 @library ../../regtesthelpers
36 @modules java.desktop/sun.awt
37 @build Util
38 @run main JButtonInGlassPaneOverlapping
39 */
40 public class JButtonInGlassPaneOverlapping extends GlassPaneOverlappingTestBase {
41
42 @Override
43 protected JComponent getSwingComponent() {
44 JButton ch = new JButton();
45 ch.setText("Swing component");
46 return ch;
47 }
48
49 // this strange plumbing stuff is required due to "Standard Test Machinery" in base class
50 public static void main(String args[]) throws InterruptedException {
51 instance = new JButtonInGlassPaneOverlapping();
52 OverlappingTestBase.doMain(args);
53 }
54 }
|
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 import javax.swing.*;
26
27 /**
28 * AWT/Swing overlapping test for {@link javax.swing.JButton } component in GlassPane.
29 * <p>See base class for details.
30 */
31 /*
32 @test
33 @summary Simple Overlapping test for javax.swing.JButton
34 @author sergey.grinev@oracle.com: area=awt.mixing
35 @library ../../regtesthelpers
36 @modules java.desktop/sun.awt
37 java.desktop/java.awt.peer
38 @build Util
39 @run main JButtonInGlassPaneOverlapping
40 */
41 public class JButtonInGlassPaneOverlapping extends GlassPaneOverlappingTestBase {
42
43 @Override
44 protected JComponent getSwingComponent() {
45 JButton ch = new JButton();
46 ch.setText("Swing component");
47 return ch;
48 }
49
50 // this strange plumbing stuff is required due to "Standard Test Machinery" in base class
51 public static void main(String args[]) throws InterruptedException {
52 instance = new JButtonInGlassPaneOverlapping();
53 OverlappingTestBase.doMain(args);
54 }
55 }
|