< prev index next >

test/java/awt/Component/NativeInLightShow/NativeInLightShow.java

Print this page
rev 14836 : 8159690: [TESTBUG] Mark headful tests with @key headful.
   1 /*
   2  * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 1.0 04/05/20

  26   @bug 4140484
  27   @summary Heavyweight components inside invisible lightweight containers still show
  28   @author Your Name: art@sparc.spb.su
  29   @run main NativeInLightShow
  30 */
  31 
  32 import java.awt.*;
  33 import java.awt.event.*;
  34 
  35 
  36 // The test verifies that the mixing code correctly handles COMPONENT_SHOWN events
  37 // while the top-level container is invisible.
  38 
  39 public class NativeInLightShow
  40 {
  41     //Declare things used in the test, like buttons and labels here
  42     static boolean buttonPressed = false;
  43     public static void main(String args[]) throws Exception {
  44         Frame f = new Frame("Test");
  45 


   1 /*
   2  * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 1.0 04/05/20
  26   @key headful
  27   @bug 4140484
  28   @summary Heavyweight components inside invisible lightweight containers still show
  29   @author Your Name: art@sparc.spb.su
  30   @run main NativeInLightShow
  31 */
  32 
  33 import java.awt.*;
  34 import java.awt.event.*;
  35 
  36 
  37 // The test verifies that the mixing code correctly handles COMPONENT_SHOWN events
  38 // while the top-level container is invisible.
  39 
  40 public class NativeInLightShow
  41 {
  42     //Declare things used in the test, like buttons and labels here
  43     static boolean buttonPressed = false;
  44     public static void main(String args[]) throws Exception {
  45         Frame f = new Frame("Test");
  46 


< prev index next >