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


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


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

 123         v.getGraphicsConfiguration();
 124         v.getTreeLock();
 125         v.getToolkit();
 126         v.isValid();
 127         v.isDisplayable();
 128         v.isVisible();
 129         v.isShowing();
 130         v.isEnabled();
 131         v.enable(false);
 132         v.enable(true);
 133         v.enableInputMethods(false);
 134         v.enableInputMethods(true);
 135         v.show();
 136         v.show(false);
 137         v.show(true);
 138         v.hide();
 139         v.getForeground();
 140         v.isForegroundSet();
 141         v.getBackground();
 142         v.isBackgroundSet();