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 import java.awt.AWTException;
25 import java.awt.Color;
26 import java.awt.Frame;
27 import java.awt.Graphics;
28 import java.awt.Point;
29 import java.awt.Robot;
30 import java.awt.Window;
31
32 /**
33 * @test
34 * @key headful
35 * @bug 8001472
36 * @summary Background of the window should not depend from the paint()/update()
37 * @author Sergey Bylokhov
38 * @library ../../../../lib/testlibrary
39 * @build ExtendedRobot
40 * @run main BackgroundIsNotUpdated
41 */
42 public final class BackgroundIsNotUpdated extends Window {
43
44 public BackgroundIsNotUpdated(final Frame owner) {
45 super(owner);
46 }
47
48 @Override
49 public void paint(final Graphics ignored) {
50 // Intentionally left blank
51 }
52
53 @Override
54 public void update(final Graphics ignored) {
55 // Intentionally left blank
56 }
57
58 public static void main(final String[] args) throws AWTException {
|
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 import java.awt.AWTException;
25 import java.awt.Color;
26 import java.awt.Frame;
27 import java.awt.Graphics;
28 import java.awt.Point;
29 import java.awt.Robot;
30 import java.awt.Window;
31
32 /**
33 * @test
34 * @key headful
35 * @bug 8001472
36 * @summary Background of the window should not depend from the paint()/update()
37 * @author Sergey Bylokhov
38 * @library ../../../../lib/client
39 * @build ExtendedRobot
40 * @run main BackgroundIsNotUpdated
41 */
42 public final class BackgroundIsNotUpdated extends Window {
43
44 public BackgroundIsNotUpdated(final Frame owner) {
45 super(owner);
46 }
47
48 @Override
49 public void paint(final Graphics ignored) {
50 // Intentionally left blank
51 }
52
53 @Override
54 public void update(final Graphics ignored) {
55 // Intentionally left blank
56 }
57
58 public static void main(final String[] args) throws AWTException {
|