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


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


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

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