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