24 /*
25 * Portions Copyright (c) 2012 IBM Corporation
26 */
27
28 import javax.swing.JButton;
29 import javax.swing.JDesktopPane;
30 import javax.swing.JFrame;
31 import javax.swing.SwingUtilities;
32 import sun.awt.SunToolkit;
33
34 import java.awt.AWTException;
35 import java.awt.AlphaComposite;
36 import java.awt.Color;
37 import java.awt.Graphics;
38 import java.awt.Graphics2D;
39 import java.awt.Rectangle;
40 import java.awt.Robot;
41 import java.awt.Toolkit;
42 import java.awt.image.BufferedImage;
43
44 /* @test 1.1 2012/04/12
45 * @bug 7154030
46 * @summary Swing components fail to hide after calling hide()
47 * @author Jonathan Lu
48 * @library ../../regtesthelpers/
49 * @build Util
50 * @run main bug7154030
51 */
52
53 public class bug7154030 {
54
55 private static JButton button = null;
56
57 public static void main(String[] args) throws Exception {
58 BufferedImage imageInit = null;
59
60 BufferedImage imageShow = null;
61
62 BufferedImage imageHide = null;
63
64 SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit();
|
24 /*
25 * Portions Copyright (c) 2012 IBM Corporation
26 */
27
28 import javax.swing.JButton;
29 import javax.swing.JDesktopPane;
30 import javax.swing.JFrame;
31 import javax.swing.SwingUtilities;
32 import sun.awt.SunToolkit;
33
34 import java.awt.AWTException;
35 import java.awt.AlphaComposite;
36 import java.awt.Color;
37 import java.awt.Graphics;
38 import java.awt.Graphics2D;
39 import java.awt.Rectangle;
40 import java.awt.Robot;
41 import java.awt.Toolkit;
42 import java.awt.image.BufferedImage;
43
44 /*
45 * @test
46 * @key headful
47 * @bug 7154030
48 * @summary Swing components fail to hide after calling hide()
49 * @author Jonathan Lu
50 * @library ../../regtesthelpers/
51 * @build Util
52 * @run main bug7154030
53 */
54
55 public class bug7154030 {
56
57 private static JButton button = null;
58
59 public static void main(String[] args) throws Exception {
60 BufferedImage imageInit = null;
61
62 BufferedImage imageShow = null;
63
64 BufferedImage imageHide = null;
65
66 SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit();
|