aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-09-19 12:47:49 +0000
committerHolger Zickner <[email protected]>2004-09-19 12:47:49 +0000
commitee2193854471b7bf45dd8d252e5b8444675e7c66 (patch)
tree2a802e6f28455cca3afe0b6ed449da83a93a6168
parent7f3f65cc5abaa5f7fdd61ae424f26cd7490024e3 (diff)
set Icon
-rw-r--r--src/jake2/render/JoglBase.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jake2/render/JoglBase.java b/src/jake2/render/JoglBase.java
index b0b3771..ef86096 100644
--- a/src/jake2/render/JoglBase.java
+++ b/src/jake2/render/JoglBase.java
@@ -2,7 +2,7 @@
* JoglCommon.java
* Copyright (C) 2004
*
- * $Id: JoglBase.java,v 1.7 2004-08-23 20:49:12 hzi Exp $
+ * $Id: JoglBase.java,v 1.8 2004-09-19 12:47:49 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -38,8 +38,11 @@ import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.LinkedList;
+import javax.swing.ImageIcon;
import javax.swing.JFrame;
+import com.sun.rsasign.t;
+
import net.java.games.jogl.*;
import net.java.games.jogl.util.GLUT;
@@ -193,6 +196,9 @@ public abstract class JoglBase implements GLEventListener {
GLimp_Shutdown();
window = new JFrame("Jake2");
+ ImageIcon icon = new ImageIcon(getClass().getResource("/icon-small.png"));
+ window.setIconImage(icon.getImage());
+
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
// we want keypressed events for TAB key