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