changeset 3946:b58d1c9fa886

7008513: Case TranslucentJAppletTest.jtr automatically failed due to java.lang.RuntimeException Summary: Set transparent background to the applet Reviewed-by: art, dcherepanov
author anthony
date Fri, 08 Apr 2011 17:04:35 +0400
parents b7381aa8dd77
children e3c14b1c846b
files test/java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java	Fri Apr 08 18:29:27 2011 +0400
+++ b/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;