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:
But also tried this: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]-->
The full source code is available from hereCode:<applet id='ShotgunApplet' code='Shotgun.class'></applet>
Thanks in advance,
Frederik Vanderstraeten
--- Solved ---
Had to remove the e.consume(); in mousePressed()


Reply With Quote


Bookmarks