cursor.setCullMode( Spatial.CULL_NEVER );
cursor.setCullMode( SceneElement.CULL_NEVER );
    private void createCustomCursor() {        cursor = new AbsoluteMouse( "cursor", display.getWidth(), display.getHeight() );        // Get a picture for my mouse.        TextureState ts = display.getRenderer().createTextureState();        URL cursorLoc;        cursorLoc = TestJMEDesktop.class.getClassLoader().getResource(                "jmetest/data/cursor/cursor1.png" );        Texture t = TextureManager.loadTexture( cursorLoc, Texture.MM_LINEAR,                Texture.FM_LINEAR, Image.GUESS_FORMAT_NO_S3TC, 1, true );        ts.setTexture( t );        cursor.setRenderState( ts );        // Make the mouse's background blend with what's already there        AlphaState as = display.getRenderer().createAlphaState();        as.setBlendEnabled( true );        as.setSrcFunction( AlphaState.SB_SRC_ALPHA );        as.setDstFunction( AlphaState.DB_ONE_MINUS_SRC_ALPHA );        as.setTestEnabled( true );        as.setTestFunction( AlphaState.TF_GREATER );        cursor.setRenderState( as );        // Assign the mouse to an input handler        cursor.registerWithInputHandler( input );        rootNode.attachChild( cursor );        // important for JMEDesktop: use system coordinates        cursor.setUsingDelta( false );        cursor.getXUpdateAction().setSpeed( 1 );        cursor.getYUpdateAction().setSpeed( 1 );        cursor.setCullMode( Spatial.CULL_NEVER );    }