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

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