7008513: Case TranslucentJAppletTest.jtr automatically failed due to java.lang.RuntimeException
authoranthony
Fri, 08 Apr 2011 17:04:35 +0400
changeset 9204 761c7da116a9
parent 9203 8fa112dbabaa
child 9205 9da0b52ce965
7008513: Case TranslucentJAppletTest.jtr automatically failed due to java.lang.RuntimeException Summary: Set transparent background to the applet Reviewed-by: art, dcherepanov
jdk/test/java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java
--- a/jdk/test/java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java	Fri Apr 08 18:29:27 2011 +0400
+++ b/jdk/test/java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java	Fri Apr 08 17:04:35 2011 +0400
@@ -43,6 +43,7 @@
     private static void initAndShowGUI() {
         frame = new JFrame();
         JApplet applet = new JApplet();
+        applet.setBackground(new Color(0, 0, 0, 0));
         JPanel panel = new JPanel() {
             protected void paintComponent(Graphics g) {
                 paintComponentCalled = true;