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


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


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

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