7008513: Case TranslucentJAppletTest.jtr automatically failed due to java.lang.RuntimeException
Summary: Set transparent background to the applet
Reviewed-by: art, dcherepanov
--- 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;