jME2 with Netbeans

Hi, I'm very new with the JMonkeyEngine and I've done this tutorial to set up jME with Netbeans( I tested this source code:

package hello3d.test;


import com.jme.math.Vector3f;

import com.jme.scene.shape.Box;


  • Started Date: Jul 20, 2004<br><br>
  • Simple HelloWorld program for jME

  • @author Jack Lindamood


    public class HelloWorld extends SimpleGame {

        public static void main(String[] args) {

            HelloWorld app = new HelloWorld();


            //setDialogBehavior… <— Doesn't work



        protected void simpleInitGame() {

            Box b = new Box("My box", new Vector3f(0, 0, 0), new Vector3f(1, 1, 1));    // Make a box

            rootNode.attachChild(b);    // Put it in the scene graph



    and every thing worksd fine, but when I want to use the setDialogBehavior method, Netbeans don't find the libraries for this. Why Netbeans don't find the  libraries for "setDialogBehavior" ?

Just for reference, I develop with JME2 in Netbeans 6.8.

As you have got the code to run, with a window appearing showing a grey box with a black background, which it sounds like you have - you have followed the setup correctly.

I've tried your code, uncommented the line and I get the same problem.

Netbeans does not find anything for setDialogBehavior() because that method does not exist in JME2. By the looks of things, that method was in JME version1 and removed in JME version 2 (The version you have setup & are compiling your code against).

btw, what did you want to use the setDialogBehaviour() to achieve?

jme2 version: