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