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