test/javax/swing/Headless/HeadlessJLayeredPane.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  */


  95         Component[] cs = lp.getComponents();
  96         lp.getLayout();
  97         lp.setLayout(new FlowLayout());
  98         lp.doLayout();
  99         lp.layout();
 100         lp.invalidate();
 101         lp.validate();
 102         lp.remove(0);
 103         lp.remove(c2);
 104         lp.removeAll();
 105         lp.preferredSize();
 106         lp.minimumSize();
 107         lp.getComponentAt(1, 2);
 108         lp.locate(1, 2);
 109         lp.getComponentAt(new Point(1, 2));
 110         lp.isFocusCycleRoot(new Container());
 111         lp.transferFocusBackward();
 112         lp.setName("goober");
 113         lp.getName();
 114         lp.getParent();
 115         lp.getPeer();
 116         lp.getGraphicsConfiguration();
 117         lp.getTreeLock();
 118         lp.getToolkit();
 119         lp.isValid();
 120         lp.isDisplayable();
 121         lp.isVisible();
 122         lp.isShowing();
 123         lp.isEnabled();
 124         lp.enable(false);
 125         lp.enable(true);
 126         lp.enableInputMethods(false);
 127         lp.enableInputMethods(true);
 128         lp.show();
 129         lp.show(false);
 130         lp.show(true);
 131         lp.hide();
 132         lp.getForeground();
 133         lp.isForegroundSet();
 134         lp.getBackground();
 135         lp.isBackgroundSet();


   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  */


  95         Component[] cs = lp.getComponents();
  96         lp.getLayout();
  97         lp.setLayout(new FlowLayout());
  98         lp.doLayout();
  99         lp.layout();
 100         lp.invalidate();
 101         lp.validate();
 102         lp.remove(0);
 103         lp.remove(c2);
 104         lp.removeAll();
 105         lp.preferredSize();
 106         lp.minimumSize();
 107         lp.getComponentAt(1, 2);
 108         lp.locate(1, 2);
 109         lp.getComponentAt(new Point(1, 2));
 110         lp.isFocusCycleRoot(new Container());
 111         lp.transferFocusBackward();
 112         lp.setName("goober");
 113         lp.getName();
 114         lp.getParent();

 115         lp.getGraphicsConfiguration();
 116         lp.getTreeLock();
 117         lp.getToolkit();
 118         lp.isValid();
 119         lp.isDisplayable();
 120         lp.isVisible();
 121         lp.isShowing();
 122         lp.isEnabled();
 123         lp.enable(false);
 124         lp.enable(true);
 125         lp.enableInputMethods(false);
 126         lp.enableInputMethods(true);
 127         lp.show();
 128         lp.show(false);
 129         lp.show(true);
 130         lp.hide();
 131         lp.getForeground();
 132         lp.isForegroundSet();
 133         lp.getBackground();
 134         lp.isBackgroundSet();