30 import javax.swing.JFrame;
31 import javax.swing.SwingUtilities;
32
33 import java.awt.AWTException;
34 import java.awt.AlphaComposite;
35 import java.awt.Color;
36 import java.awt.Graphics;
37 import java.awt.Graphics2D;
38 import java.awt.Rectangle;
39 import java.awt.Robot;
40 import java.awt.Toolkit;
41 import java.awt.image.BufferedImage;
42
43 /*
44 * @test
45 * @key headful
46 * @bug 7154030
47 * @summary Swing components fail to hide after calling hide()
48 * @author Jonathan Lu
49 * @library ../../regtesthelpers/
50 * @library ../../../../lib/testlibrary/
51 * @build Util
52 * @build ExtendedRobot
53 * @run main bug7154030
54 */
55
56 public class bug7154030 {
57
58 private static JButton button = null;
59
60 public static void main(String[] args) throws Exception {
61 BufferedImage imageInit = null;
62
63 BufferedImage imageShow = null;
64
65 BufferedImage imageHide = null;
66
67 ExtendedRobot robot = new ExtendedRobot();
68
69 SwingUtilities.invokeAndWait(new Runnable() {
70
|
30 import javax.swing.JFrame;
31 import javax.swing.SwingUtilities;
32
33 import java.awt.AWTException;
34 import java.awt.AlphaComposite;
35 import java.awt.Color;
36 import java.awt.Graphics;
37 import java.awt.Graphics2D;
38 import java.awt.Rectangle;
39 import java.awt.Robot;
40 import java.awt.Toolkit;
41 import java.awt.image.BufferedImage;
42
43 /*
44 * @test
45 * @key headful
46 * @bug 7154030
47 * @summary Swing components fail to hide after calling hide()
48 * @author Jonathan Lu
49 * @library ../../regtesthelpers/
50 * @library ../../../../lib/client/
51 * @build Util
52 * @build ExtendedRobot
53 * @run main bug7154030
54 */
55
56 public class bug7154030 {
57
58 private static JButton button = null;
59
60 public static void main(String[] args) throws Exception {
61 BufferedImage imageInit = null;
62
63 BufferedImage imageShow = null;
64
65 BufferedImage imageHide = null;
66
67 ExtendedRobot robot = new ExtendedRobot();
68
69 SwingUtilities.invokeAndWait(new Runnable() {
70
|