equal
deleted
inserted
replaced
35 import javax.swing.JComponent; |
35 import javax.swing.JComponent; |
36 import javax.swing.JFrame; |
36 import javax.swing.JFrame; |
37 import javax.swing.JPanel; |
37 import javax.swing.JPanel; |
38 import javax.swing.JScrollPane; |
38 import javax.swing.JScrollPane; |
39 import javax.swing.SwingUtilities; |
39 import javax.swing.SwingUtilities; |
|
40 import test.java.awt.regtesthelpers.Util; |
40 |
41 |
41 /** |
42 /** |
42 * AWT/Swing overlapping test for viewport |
43 * AWT/Swing overlapping test for viewport |
43 * <p>This test verify if AWT components are drawn correctly being partially shown through viewport |
44 * <p>This test verify if AWT components are drawn correctly being partially shown through viewport |
44 * <p>See <a href="http://monaco.sfbay.sun.com/detail.jsf?cr=6778882">CR6778882</a> for details |
45 * <p>See <a href="http://monaco.sfbay.sun.com/detail.jsf?cr=6778882">CR6778882</a> for details |
47 /* |
48 /* |
48 @test |
49 @test |
49 @bug 6778882 |
50 @bug 6778882 |
50 @summary Viewport overlapping test for each AWT component |
51 @summary Viewport overlapping test for each AWT component |
51 @author sergey.grinev@oracle.com: area=awt.mixing |
52 @author sergey.grinev@oracle.com: area=awt.mixing |
|
53 @library ../../regtesthelpers |
|
54 @build Util |
52 @run main ViewportOverlapping |
55 @run main ViewportOverlapping |
53 */ |
56 */ |
54 public class ViewportOverlapping extends OverlappingTestBase { |
57 public class ViewportOverlapping extends OverlappingTestBase { |
55 |
58 |
56 private volatile int frameClicked; |
59 private volatile int frameClicked; |
114 resizeLoc.translate(f.getWidth() - 1, f.getHeight() - 1); |
117 resizeLoc.translate(f.getWidth() - 1, f.getHeight() - 1); |
115 } |
118 } |
116 }); |
119 }); |
117 } catch (Exception e) { |
120 } catch (Exception e) { |
118 e.printStackTrace(); |
121 e.printStackTrace(); |
119 System.exit(1); |
122 throw new RuntimeException("Problem preparing test GUI."); |
120 } |
123 } |
121 // run robot |
124 // run robot |
122 Robot robot = Util.createRobot(); |
125 Robot robot = Util.createRobot(); |
123 robot.setAutoDelay(ROBOT_DELAY); |
126 robot.setAutoDelay(ROBOT_DELAY); |
124 |
127 |