Applet hangs with no error after "LWJGL Display System created." *SOLVED*

I managed to get past all the errors with my first jME2.0.1 applet, but it's still not working though  :|



I'm using the LWJGL AppletLoader to load my applet built with jME, and it seems to load all fine. After loading it hides the progress bar and the logo showing just a blank screen. The console shows no error message, but just



19.5.2010 23:38:28 com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.



It's kinda hard for such a noob as me to trace the bug with no error message of any kind  :?

The applet runs fine in NetBeans' AppletViewer and is built as a web-start app to get the jars signed.


EDIT: Problem solved! I refactored my code to use SimpleApplet instead of SimpleJMEApplet and now it works perfect  :)

I tried to simplify my app as much as possible. This runs fine in NetBeans, but hangs with LWJGL AppletLoader with no error. Once or twice I got an error message saying something about creating input system.  :?



I tested LWJGL loader with the Gears-demo and it's working too.



This is the code I'm trying to run:


package Info3D_Applet.test;

import com.jme.math.*;
import com.jme.renderer.Renderer;
import com.jme.scene.*;
import com.jmex.awt.applet.*;
import custom3d.modelLoad;
import custom3d.TextLabel2D;
import com.jme.renderer.Camera;
import com.jme.renderer.ColorRGBA;
import com.jme.light.*;
import com.jme.scene.state.LightState;
import java.awt.Color;
import java.util.PropertyPermission;

public class InfoTest extends SimpleJMEApplet{
    protected Node rootNode;
    protected LightState lightState;
    protected Node hudNode;
    protected Camera cam;
    protected PropertyPermission perm;
    
    @Override
     public void simpleAppletSetup() {

        cam = getCamera();
   Vector3f loc = new Vector3f(50.0f, 40.0f, 165.0f);
   Vector3f left = new Vector3f(-1.0f, 0.0f, 0.0f);
   Vector3f up = new Vector3f(0.0f, 1.0f, 0.0f);
   Vector3f dir = new Vector3f(0.0f, 0.0f, -1.0f);
   cam.setFrame(loc, left, up, dir);
   cam.setFrustumPerspective(45.0f, (float) getWidth() / (float) getHeight(), 1f, 9999f);
        cam.update();

        ColorRGBA bgCol = new ColorRGBA(180/255f, 210/255f, 240/255f, 1);
        getRenderer().setBackgroundColor(bgCol);

        DirectionalLight dl = new DirectionalLight();
        dl.setDirection(new Vector3f(1,-1,1));
        dl.setDiffuse(new ColorRGBA(0.6f, 0.6f, 0.6f, 1.0f));
        dl.setAmbient(new ColorRGBA(0.45f, 0.45f, 0.45f, 1.0f));
        dl.setEnabled(true);

        DirectionalLight dl2 = new DirectionalLight();
        dl2.setDirection(new Vector3f(-1,-1,-1));
        dl2.setDiffuse(new ColorRGBA(0.1f, 0.1f, 0.1f, 1.0f));
        dl2.setAmbient(new ColorRGBA(0.05f, 0.05f, 0.05f, 0.1f));
        dl2.setEnabled(true);

        lightState = getRenderer().createLightState();
        lightState.detachAll();
   lightState.setEnabled(true);
        lightState.attach(dl);
        lightState.attach(dl2);
        getRootNode().setRenderState(lightState);

        getRootNode().setRenderQueueMode(Renderer.QUEUE_OPAQUE);

        Node N=new modelLoad().buildgasa("models/raaka.3ds");
        N.setLocalTranslation(new Vector3f(60, 0, -120));
        getRootNode().attachChild(N);
    }

     @Override
     public void simpleAppletUpdate() {

    }
}