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

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