cam.setFrustumPerspective(45.0f,display.getWidth()/display.getHeight(), 1,1000);
cam.setFrustumPerspective(45.0f,(float)display.getWidth()/(float)display.getHeight(), 1,1000);
  protected final void initSystem() {    try {      display = DisplaySystem.getDisplaySystem(properties.getRenderer());      display.createWindow(          properties.getWidth(),          properties.getHeight(),          properties.getDepth(),          properties.getFreq(),          properties.getFullscreen());      cam =          display.getRenderer().getCamera(          properties.getWidth(),          properties.getHeight());    }    catch (JmeException e) {      e.printStackTrace();      System.exit(1);    }    display.getRenderer().setBackgroundColor(ColorRGBA.black);    // setup our camera    cam.setFrustumPerspective(45.0f,display.getWidth()/display.getHeight(), 1,1000);    Vector3f loc = new Vector3f(0.0f, 0.0f, 25.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, 0f, -1.0f);    cam.setFrame(loc, left, up, dir);    display.getRenderer().setCamera(cam);    // Setup the input controller and timer    input = new FirstPersonHandler(this, cam, properties.getRenderer());    input.setKeySpeed(10f);    input.setMouseSpeed(1f);    timer = Timer.getTimer(properties.getRenderer());    display.setTitle("SimpleGame");    display.getRenderer().enableStatistics(true);    KeyBindingManager.getKeyBindingManager().set(        "toggle_wire",        KeyInput.KEY_T);    KeyBindingManager.getKeyBindingManager().set(        "toggle_lights",        KeyInput.KEY_L);    KeyBindingManager.getKeyBindingManager().set(        "toggle_bounds",        KeyInput.KEY_B);    KeyBindingManager.getKeyBindingManager().set(        "camera_out",        KeyInput.KEY_C);  }