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


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


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

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