33 import javax.swing.BorderFactory;
34 import javax.swing.JButton;
35 import javax.swing.JComponent;
36 import javax.swing.JFrame;
37 import javax.swing.JPanel;
38 import javax.swing.JScrollPane;
39 import javax.swing.SwingUtilities;
40 import test.java.awt.regtesthelpers.Util;
41
42 /**
43 * AWT/Swing overlapping test for viewport
44 * <p>This test verify if AWT components are drawn correctly being partially shown through viewport
45 * <p>See <a href="http://monaco.sfbay.sun.com/detail.jsf?cr=6778882">CR6778882</a> for details
46 * <p>See base class for test info.
47 */
48 /*
49 @test
50 @bug 6778882
51 @summary Viewport overlapping test for each AWT component
52 @author sergey.grinev@oracle.com: area=awt.mixing
53 @library ../../regtesthelpers
54 @modules java.desktop/sun.awt
55 java.desktop/java.awt.peer
56 @build Util
57 @run main ViewportOverlapping
58 */
59 public class ViewportOverlapping extends OverlappingTestBase {
60
61 private volatile int frameClicked;
62 private Point hLoc;
63 private Point vLoc;
64 private Point testLoc;
65 private Point resizeLoc;
66
67 private JFrame f;
68 private JPanel p;
69 private JButton b;
70 private JScrollPane scrollPane;
71
72 protected void prepareControls() {
73 p = new JPanel(new GridLayout(0, 1));
74 propagateAWTControls(p);
75 b = new JButton("Space extender");
|
33 import javax.swing.BorderFactory;
34 import javax.swing.JButton;
35 import javax.swing.JComponent;
36 import javax.swing.JFrame;
37 import javax.swing.JPanel;
38 import javax.swing.JScrollPane;
39 import javax.swing.SwingUtilities;
40 import test.java.awt.regtesthelpers.Util;
41
42 /**
43 * AWT/Swing overlapping test for viewport
44 * <p>This test verify if AWT components are drawn correctly being partially shown through viewport
45 * <p>See <a href="http://monaco.sfbay.sun.com/detail.jsf?cr=6778882">CR6778882</a> for details
46 * <p>See base class for test info.
47 */
48 /*
49 @test
50 @bug 6778882
51 @summary Viewport overlapping test for each AWT component
52 @author sergey.grinev@oracle.com: area=awt.mixing
53 @library /java/awt/patchlib ../../regtesthelpers
54 @modules java.desktop/sun.awt
55 java.desktop/java.awt.peer
56 @build java.desktop/java.awt.Helper
57 @build Util
58 @run main ViewportOverlapping
59 */
60 public class ViewportOverlapping extends OverlappingTestBase {
61
62 private volatile int frameClicked;
63 private Point hLoc;
64 private Point vLoc;
65 private Point testLoc;
66 private Point resizeLoc;
67
68 private JFrame f;
69 private JPanel p;
70 private JButton b;
71 private JScrollPane scrollPane;
72
73 protected void prepareControls() {
74 p = new JPanel(new GridLayout(0, 1));
75 propagateAWTControls(p);
76 b = new JButton("Space extender");
|