OpenJDK / portola / portola
changeset 9204:761c7da116a9
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 | 8fa112dbabaa |
children | 9da0b52ce965 |
files | jdk/test/java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;