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 */
118 Component[] cs = t.getComponents();
119 t.getLayout();
120 t.setLayout(new FlowLayout());
121 t.doLayout();
122 t.layout();
123 t.invalidate();
124 t.validate();
125 t.remove(0);
126 t.remove(c2);
127 t.removeAll();
128 t.preferredSize();
129 t.minimumSize();
130 t.getComponentAt(1, 2);
131 t.locate(1, 2);
132 t.getComponentAt(new Point(1, 2));
133 t.isFocusCycleRoot(new Container());
134 t.transferFocusBackward();
135 t.setName("goober");
136 t.getName();
137 t.getParent();
138 t.getPeer();
139 t.getGraphicsConfiguration();
140 t.getTreeLock();
141 t.getToolkit();
142 t.isValid();
143 t.isDisplayable();
144 t.isVisible();
145 t.isShowing();
146 t.isEnabled();
147 t.enable(false);
148 t.enable(true);
149 t.enableInputMethods(false);
150 t.enableInputMethods(true);
151 t.show();
152 t.show(false);
153 t.show(true);
154 t.hide();
155 t.getForeground();
156 t.isForegroundSet();
157 t.getBackground();
158 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 */
118 Component[] cs = t.getComponents();
119 t.getLayout();
120 t.setLayout(new FlowLayout());
121 t.doLayout();
122 t.layout();
123 t.invalidate();
124 t.validate();
125 t.remove(0);
126 t.remove(c2);
127 t.removeAll();
128 t.preferredSize();
129 t.minimumSize();
130 t.getComponentAt(1, 2);
131 t.locate(1, 2);
132 t.getComponentAt(new Point(1, 2));
133 t.isFocusCycleRoot(new Container());
134 t.transferFocusBackward();
135 t.setName("goober");
136 t.getName();
137 t.getParent();
138 t.getGraphicsConfiguration();
139 t.getTreeLock();
140 t.getToolkit();
141 t.isValid();
142 t.isDisplayable();
143 t.isVisible();
144 t.isShowing();
145 t.isEnabled();
146 t.enable(false);
147 t.enable(true);
148 t.enableInputMethods(false);
149 t.enableInputMethods(true);
150 t.show();
151 t.show(false);
152 t.show(true);
153 t.hide();
154 t.getForeground();
155 t.isForegroundSet();
156 t.getBackground();
157 t.isBackgroundSet();
|