7008513: Case TranslucentJAppletTest.jtr automatically failed due to java.lang.RuntimeException

Set transparent background to the applet

Reviewed-by: art, dcherepanov
This commit is contained in:
Anthony Petrov 2011-04-08 17:04:35 +04:00
parent f9feed6668
commit c2d4b9c218

View File

@ -43,6 +43,7 @@ public class TranslucentJAppletTest {
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;