< prev index next >

test/java/awt/Dialog/ChildProperties/ChildDialogProperties.java

Print this page
rev 14989 : 8160974: [TESTBUG] Mark more headful tests with @key headful.


   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
  26  @bug 8057574
  27  @summary Verify that child Dialog does not inherit parent's Properties
  28  @run main ChildDialogProperties

  29  */

  30 import java.awt.Color;
  31 import java.awt.Dialog;
  32 import java.awt.Font;
  33 import java.awt.Frame;
  34 import java.awt.Label;
  35 
  36 public class ChildDialogProperties {
  37 
  38     private Dialog parentDialog;
  39     private Dialog dialogChild;
  40     private Frame parentFrame;
  41     private Dialog frameChildDialog;
  42     private Label parentLabel;
  43     private Font parentFont;
  44     private Label childLabel;
  45 
  46     private static final int WIDTH = 200;
  47     private static final int HEIGHT = 200;
  48 
  49     public void testChildPropertiesWithDialogAsParent() {




   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
  26  * @key headful
  27  * @bug 8057574
  28  * @summary Verify that child Dialog does not inherit parent's Properties
  29  * @run main ChildDialogProperties
  30  */
  31 
  32 import java.awt.Color;
  33 import java.awt.Dialog;
  34 import java.awt.Font;
  35 import java.awt.Frame;
  36 import java.awt.Label;
  37 
  38 public class ChildDialogProperties {
  39 
  40     private Dialog parentDialog;
  41     private Dialog dialogChild;
  42     private Frame parentFrame;
  43     private Dialog frameChildDialog;
  44     private Label parentLabel;
  45     private Font parentFont;
  46     private Label childLabel;
  47 
  48     private static final int WIDTH = 200;
  49     private static final int HEIGHT = 200;
  50 
  51     public void testChildPropertiesWithDialogAsParent() {


< prev index next >