test/java/awt/Component/Headless/HeadlessContainer.java

Print this page


   1 /*
   2  * Copyright (c) 2007, 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  */


  70                 lw.setFont(f3);
  71                 lw.setFont(f4);
  72             }
  73         }
  74         lw.getPreferredSize();
  75         lw.preferredSize();
  76         lw.getMinimumSize();
  77         lw.minimumSize();
  78         lw.getMaximumSize();
  79         lw.getAlignmentX();
  80         lw.getAlignmentY();
  81         lw.getComponentAt(1, 2);
  82         lw.locate(1, 2);
  83         lw.getComponentAt(new Point(1, 2));
  84         lw.isFocusCycleRoot(new Container());
  85         lw.transferFocusBackward();
  86         lw.getName();
  87         lw.setName("goober");
  88         lw.getName();
  89         lw.getParent();
  90         lw.getPeer();
  91         lw.getGraphicsConfiguration();
  92         lw.getTreeLock();
  93         lw.getToolkit();
  94         lw.isValid();
  95         lw.isDisplayable();
  96         lw.isVisible();
  97         lw.isShowing();
  98         lw.isEnabled();
  99         lw.setEnabled(false);
 100         lw.setEnabled(true);
 101         lw.enable();
 102         lw.enable(false);
 103         lw.enable(true);
 104         lw.disable();
 105         lw.isDoubleBuffered();
 106         lw.enableInputMethods(false);
 107         lw.enableInputMethods(true);
 108         lw.setVisible(false);
 109         lw.setVisible(true);
 110         lw.show();


   1 /*
   2  * Copyright (c) 2007, 2015, 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  */


  70                 lw.setFont(f3);
  71                 lw.setFont(f4);
  72             }
  73         }
  74         lw.getPreferredSize();
  75         lw.preferredSize();
  76         lw.getMinimumSize();
  77         lw.minimumSize();
  78         lw.getMaximumSize();
  79         lw.getAlignmentX();
  80         lw.getAlignmentY();
  81         lw.getComponentAt(1, 2);
  82         lw.locate(1, 2);
  83         lw.getComponentAt(new Point(1, 2));
  84         lw.isFocusCycleRoot(new Container());
  85         lw.transferFocusBackward();
  86         lw.getName();
  87         lw.setName("goober");
  88         lw.getName();
  89         lw.getParent();

  90         lw.getGraphicsConfiguration();
  91         lw.getTreeLock();
  92         lw.getToolkit();
  93         lw.isValid();
  94         lw.isDisplayable();
  95         lw.isVisible();
  96         lw.isShowing();
  97         lw.isEnabled();
  98         lw.setEnabled(false);
  99         lw.setEnabled(true);
 100         lw.enable();
 101         lw.enable(false);
 102         lw.enable(true);
 103         lw.disable();
 104         lw.isDoubleBuffered();
 105         lw.enableInputMethods(false);
 106         lw.enableInputMethods(true);
 107         lw.setVisible(false);
 108         lw.setVisible(true);
 109         lw.show();