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 */
23
24
25 import java.awt.*;
26 import java.awt.event.*;
27 import java.lang.reflect.InvocationTargetException;
28 import javax.swing.SwingUtilities;
29 import java.io.*;
30
31 /**
32 * AWT Mixing test for HierarchyBoundsListener ancestors.
33 * <p>See <a href="https://bugs.openjdk.java.net/browse/JDK-6768230">CR6768230</a> for details.
34 */
35 /*
36 * @test
37 * @key headful
38 * @bug 6768230
39 * @summary Mixing test for HierarchyBoundsListener ancestors
40 * @build FrameBorderCounter
41 * @run main HierarchyBoundsListenerMixingTest
42 */
43 public class HierarchyBoundsListenerMixingTest {
44
45 protected void prepareControls() {
46 dummy = new Frame();
47 dummy.setSize(100, 100);
48 dummy.setLocation(0, 350);
49 dummy.setVisible(true);
50
51 frame = new Frame("Test Frame");
52 frame.setLayout(new FlowLayout());
53
54 panel = new Panel();
55 button = new Button("Button");
56 label = new Label("Label");
57 list = new List();
58 list.add("One");
|
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 */
23
24
25 import java.awt.*;
26 import java.awt.event.*;
27 import java.lang.reflect.InvocationTargetException;
28 import javax.swing.SwingUtilities;
29 import java.io.*;
30
31 /**
32 * AWT Mixing test for HierarchyBoundsListener ancestors.
33 * <p>See <a href="https://bugs.openjdk.java.net/browse/JDK-6768230">CR6768230</a> for details.
34 */
35 /*
36 * @test
37 * @key headful
38 * @bug 6768230 8221823
39 * @summary Mixing test for HierarchyBoundsListener ancestors
40 * @build FrameBorderCounter
41 * @run main HierarchyBoundsListenerMixingTest
42 */
43 public class HierarchyBoundsListenerMixingTest {
44
45 protected void prepareControls() {
46 dummy = new Frame();
47 dummy.setSize(100, 100);
48 dummy.setLocation(0, 350);
49 dummy.setVisible(true);
50
51 frame = new Frame("Test Frame");
52 frame.setLayout(new FlowLayout());
53
54 panel = new Panel();
55 button = new Button("Button");
56 label = new Label("Label");
57 list = new List();
58 list.add("One");
|