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