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