28 import java.awt.Checkbox;
29 import java.awt.Choice;
30 import java.awt.Component;
31 import java.awt.Container;
32 import java.awt.Dimension;
33 import java.awt.Frame;
34 import java.awt.Graphics;
35 import java.awt.GridLayout;
36 import java.awt.Label;
37 import java.awt.List;
38 import java.awt.Panel;
39 import java.awt.ScrollPane;
40 import java.awt.Scrollbar;
41 import java.awt.TextArea;
42 import java.awt.TextField;
43 import java.awt.Toolkit;
44 import java.awt.image.BufferedImage;
45
46 /*
47 @test
48 @bug 6596915
49 @summary Test Component.paintAll() method
50 @author sergey.bylokhov@oracle.com: area=awt.component
51 @run main PaintAll
52 */
53 public class PaintAll {
54
55 private static volatile boolean lwPainted;
56 private static volatile boolean buttonPainted;
57 private static volatile boolean canvasPainted;
58 private static volatile boolean checkboxPainted;
59 private static volatile boolean choicePainted;
60 private static volatile boolean containerPainted;
61 private static volatile boolean framePainted;
62 private static volatile boolean labelPainted;
63 private static volatile boolean listPainted;
64 private static volatile boolean panelPainted;
65 private static volatile boolean scrollbarPainted;
66 private static volatile boolean scrollPanePainted;
67 private static volatile boolean textAreaPainted;
|
28 import java.awt.Checkbox;
29 import java.awt.Choice;
30 import java.awt.Component;
31 import java.awt.Container;
32 import java.awt.Dimension;
33 import java.awt.Frame;
34 import java.awt.Graphics;
35 import java.awt.GridLayout;
36 import java.awt.Label;
37 import java.awt.List;
38 import java.awt.Panel;
39 import java.awt.ScrollPane;
40 import java.awt.Scrollbar;
41 import java.awt.TextArea;
42 import java.awt.TextField;
43 import java.awt.Toolkit;
44 import java.awt.image.BufferedImage;
45
46 /*
47 @test
48 @key headful
49 @bug 6596915
50 @summary Test Component.paintAll() method
51 @author sergey.bylokhov@oracle.com: area=awt.component
52 @run main PaintAll
53 */
54 public class PaintAll {
55
56 private static volatile boolean lwPainted;
57 private static volatile boolean buttonPainted;
58 private static volatile boolean canvasPainted;
59 private static volatile boolean checkboxPainted;
60 private static volatile boolean choicePainted;
61 private static volatile boolean containerPainted;
62 private static volatile boolean framePainted;
63 private static volatile boolean labelPainted;
64 private static volatile boolean listPainted;
65 private static volatile boolean panelPainted;
66 private static volatile boolean scrollbarPainted;
67 private static volatile boolean scrollPanePainted;
68 private static volatile boolean textAreaPainted;
|