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