I made a small game
Play it here
It works fine in Firefox but the KeyListener doesn't work in Internet Explorer.
I include the applet with this code:
Code:
<!--[if !IE]>-->
<object classid="java:Shotgun.class"
type="application/x-java-applet"
id="ShotgunApplet" >
<!--<![endif]-->
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
id="ShotgunAppletIE" >
<param name="code" value="Shotgun" />
</object>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
But also tried this:
Code:
<applet id='ShotgunApplet' code='Shotgun.class'></applet>
The full source code is available from here
Thanks in advance,
Frederik Vanderstraeten
--- Solved ---
Had to remove the e.consume(); in mousePressed()