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