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


 136         Component[] cs = t.getComponents();
 137         t.getLayout();
 138         t.setLayout(new FlowLayout());
 139         t.doLayout();
 140         t.layout();
 141         t.invalidate();
 142         t.validate();
 143         t.remove(0);
 144         t.remove(c2);
 145         t.removeAll();
 146         t.preferredSize();
 147         t.minimumSize();
 148         t.getComponentAt(1, 2);
 149         t.locate(1, 2);
 150         t.getComponentAt(new Point(1, 2));
 151         t.isFocusCycleRoot(new Container());
 152         t.transferFocusBackward();
 153         t.setName("goober");
 154         t.getName();
 155         t.getParent();
 156         t.getPeer();
 157         t.getGraphicsConfiguration();
 158         t.getTreeLock();
 159         t.getToolkit();
 160         t.isValid();
 161         t.isDisplayable();
 162         t.isVisible();
 163         t.isShowing();
 164         t.isEnabled();
 165         t.enable(false);
 166         t.enable(true);
 167         t.enableInputMethods(false);
 168         t.enableInputMethods(true);
 169         t.show();
 170         t.show(false);
 171         t.show(true);
 172         t.hide();
 173         t.getForeground();
 174         t.isForegroundSet();
 175         t.getBackground();
 176         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  */


 136         Component[] cs = t.getComponents();
 137         t.getLayout();
 138         t.setLayout(new FlowLayout());
 139         t.doLayout();
 140         t.layout();
 141         t.invalidate();
 142         t.validate();
 143         t.remove(0);
 144         t.remove(c2);
 145         t.removeAll();
 146         t.preferredSize();
 147         t.minimumSize();
 148         t.getComponentAt(1, 2);
 149         t.locate(1, 2);
 150         t.getComponentAt(new Point(1, 2));
 151         t.isFocusCycleRoot(new Container());
 152         t.transferFocusBackward();
 153         t.setName("goober");
 154         t.getName();
 155         t.getParent();

 156         t.getGraphicsConfiguration();
 157         t.getTreeLock();
 158         t.getToolkit();
 159         t.isValid();
 160         t.isDisplayable();
 161         t.isVisible();
 162         t.isShowing();
 163         t.isEnabled();
 164         t.enable(false);
 165         t.enable(true);
 166         t.enableInputMethods(false);
 167         t.enableInputMethods(true);
 168         t.show();
 169         t.show(false);
 170         t.show(true);
 171         t.hide();
 172         t.getForeground();
 173         t.isForegroundSet();
 174         t.getBackground();
 175         t.isBackgroundSet();