private static Geometry putShape(Mesh shape, ColorRGBA color,
            AssetManager assetManager, Node rootNode) {
        Geometry g = new Geometry("coordinate axis", shape);
        Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
        mat.getAdditionalRenderState().setWireframe(true);
        mat.setColor("Color", color);
        g.setMaterial(mat);
        rootNode.attachChild(g);
        return g;
    }
private static Geometry putShape ( Mesh shape , ColorRGBA color , AssetManager assetManager , Node rootNode ) { Geometry g = new Geometry ( "coordinate axis" , shape ) ; Material mat = new Material ( assetManager , "Common/MatDefs/Misc/Unshaded.j3md" ) ; mat . getAdditionalRenderState ( ) . setWireframe ( true ) ; mat . setColor ( "Color" , color ) ; g . setMaterial ( mat ) ; rootNode . attachChild ( g ) ; return g ; }
code based on http://jmonkeyengine.org/wiki/doku.php/jme3:advanced:debugging