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