diff options
author | Kenneth B. Russell <[email protected]> | 2008-03-02 20:38:04 +0000 |
---|---|---|
committer | Kenneth B. Russell <[email protected]> | 2008-03-02 20:38:04 +0000 |
commit | 89a42022adc380f995f07287fbcd14af204ded34 (patch) | |
tree | 09311cca739a493809a74f6d1041944a8a983ddf /src | |
parent | 9323828a9f6118313d431f13a1f309da9c79ba09 (diff) |
Set background of Jake2Applet to black before fully initialized
Diffstat (limited to 'src')
-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(); |