diff options
Diffstat (limited to 'src/jake2/Jake2Applet.java')
-rwxr-xr-x | src/jake2/Jake2Applet.java | 9 |
1 files changed, 8 insertions, 1 deletions
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(); |