[SOLVED] Which class for dialog box?

Yes, Lemur can do this.

This is actually a rollup panel thats dragable.

Which can be completely removed or added by hitting the f1 key.

You can add fields,

        //Velocity Bias.
        contOAP.addChild(new Label("velBias"), "split 2, growx"); 
        fieldVelocityBias = contOAP.addChild(new TextField(""));
        fieldVelocityBias.setSingleLine(true);
        fieldVelocityBias.setPreferredWidth(50);

and use the data,

        //The velocity bias settings.
        if (!getState(UtilState.class).isNumeric(fieldVelocityBias.getText()) 
        ||  fieldVelocityBias.getText().isEmpty()) {
            displayMessage("[ velocityBias ] requires a valid float value.", 0);
            return;
        } else {
            velBias = new Float(fieldVelocityBias.getText());
            //Stop negative input.
            if (velBias < 0.0f || velBias > 1) {
                displayMessage("[ fieldVelocityBias ] requires a float value between 0 and 1 inclusive.", 0);
                return;
            }
        }
        ObstacleAvoidanceParams params  = new ObstacleAvoidanceParams();
        params.velBias          = velBias;

If you wish to learn Lemur then the demos and gems are priceless.

Edit: I should add that the interface shown is configuring the Recast4j crowd and thats a bitching complex library so you can do just about anything you can dream of I expect with Lemur.

2 Likes