From 89a42022adc380f995f07287fbcd14af204ded34 Mon Sep 17 00:00:00 2001 From: "Kenneth B. Russell" Date: Sun, 2 Mar 2008 20:38:04 +0000 Subject: Set background of Jake2Applet to black before fully initialized --- src/jake2/Jake2Applet.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/jake2/Jake2Applet.java b/src/jake2/Jake2Applet.java index 16bf627..3b7e7c0 100755 --- a/src/jake2/Jake2Applet.java +++ b/src/jake2/Jake2Applet.java @@ -2,7 +2,7 @@ * Jake2Applet.java * Copyright (C) 2008 * - * $Id: Jake2Applet.java,v 1.1 2008-03-02 20:21:12 kbrussel Exp $ + * $Id: Jake2Applet.java,v 1.2 2008-03-02 20:38:04 kbrussel Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -30,6 +30,7 @@ import jake2.qcommon.*; import jake2.sys.Timer; import java.awt.BorderLayout; +import java.awt.Color; import java.util.Locale; import javax.swing.JApplet; @@ -45,6 +46,12 @@ public class Jake2Applet extends JApplet { private boolean shutDown; private Object shutDownLock = new Object(); + public void init() { + // Before Jake2 is fully initialized, make the applet black + // like the rest of the web page + setBackground(Color.BLACK); + } + public void start() { setLayout(new BorderLayout()); new GameThread().start(); -- cgit v1.2.3