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

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