+ ", " + offsetZField.getText() + "));\n");
+ "f, " + offsetZField.getText() + "f));\n");
    private void updateCode() {        StringBuffer code = new StringBuffer();        code.append("HashMap handlerProps = new HashMap();\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_ROTATEONLY, \""                + rotateOnlyBox.isSelected() + "\");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_DOGRADUAL, \""                + gradualTurnsCheckBox.isSelected() + "\");\n");        if (gradualTurnsCheckBox.isSelected())            code.append("handlerProps.put(ThirdPersonHandler.PROP_TURNSPEED, \""                            + turnSpeedField.getText() + "\");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_LOCKBACKWARDS, \""                        + lockBackwardsCheckBox.isSelected() + "\");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_CAMERAALIGNEDMOVE, \""                        + alignCameraRadio.isSelected() + "\");\n\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_ROTATEONLY, \""                + rotateOnlyBox.isSelected() + "\");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_STRAFETARGETALIGN, \""                        + strafeAlignTargetBox.isSelected() + "\");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_FORWARD, KeyInput."                        + keys.get(ThirdPersonHandler.PROP_KEY_FORWARD)                        + ");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_LEFT, KeyInput."                        + keys.get(ThirdPersonHandler.PROP_KEY_LEFT) + ");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_BACKWARD, KeyInput."                        + keys.get(ThirdPersonHandler.PROP_KEY_BACKWARD)                        + ");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_RIGHT, KeyInput."                        + keys.get(ThirdPersonHandler.PROP_KEY_RIGHT) + ");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_STRAFELEFT, KeyInput."                        + keys.get(ThirdPersonHandler.PROP_KEY_STRAFELEFT)                        + ");\n");        code.append("handlerProps.put(ThirdPersonHandler.PROP_KEY_STRAFERIGHT, KeyInput."                        + keys.get(ThirdPersonHandler.PROP_KEY_STRAFERIGHT)                        + ");\n");        code.append("input = new ThirdPersonHandler(m_character, cam, handlerProps);\n");        code.append("input.setActionSpeed(" + moveSpeedField.getText()                        + ");\n");        code.append("\nHashMap chaserProps = new HashMap();\n");        code.append("chaserProps.put(ChaseCamera.PROP_ENABLESPRING, \""                + enableSpringsCheckBox.isSelected() + "\");\n");        if (enableSpringsCheckBox.isSelected()) {            code.append("chaserProps.put(ChaseCamera.PROP_DAMPINGK, \""                    + dampingKField.getText() + "\");\n");            code.append("chaserProps.put(ChaseCamera.PROP_SPRINGK, \""                    + springKField.getText() + "\");\n");            code.append("chaserProps.put(ChaseCamera.PROP_MAXDISTANCE, \""                    + maxDistanceField.getText() + "\");\n");            code.append("chaserProps.put(ChaseCamera.PROP_MINDISTANCE, \""                    + minDistanceField.getText() + "\");\n");        }        code.append("chaserProps.put(ChaseCamera.PROP_INITIALSPHERECOORDS, new Vector3f("                        + radiusField.getText()                        + ", 0, "                        + polarField.getText() + "));\n");        code.append("chaserProps.put(ChaseCamera.PROP_STAYBEHINDTARGET, \""                + stayBehindTargetBox.isSelected() + "\");\n");        if (offsetRelativeRadio.isSelected())            code.append("chaserProps.put(ChaseCamera.PROP_TARGETOFFSET, new Vector3f(0, ((BoundingBox) myTarget.getWorldBound()).yExtent * "                            + offsetRatioField.getText() + ", 0));\n");        else            code.append("chaserProps.put(ChaseCamera.PROP_TARGETOFFSET, new Vector3f("                            + offsetXField.getText()                            + ", "                            + offsetYField.getText()                            + ", "                            + offsetZField.getText() + "));\n");        code.append("chaserProps.put(ThirdPersonMouseLook.PROP_ENABLED, \""                + enableMouseLookBox.isSelected() + "\");\n");        if (enableMouseLookBox.isSelected()) {            code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MAXASCENT, \""                            + maxAscentSlider.getValue() + "\");\n");            code.append("chaserProps.put(ThirdPersonMouseLook.PROP_INVERTEDY, \""                            + invertControlCheckBox.isSelected() + "\");\n");            code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MINROLLOUT, \""                            + minZoomField.getText() + "\");\n");            code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MAXROLLOUT, \""                            + maxZoomField.getText() + "\");\n");            code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MOUSEXMULT, \""                            + accelHorizontalField.getText() + "\");\n");            code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MOUSEYMULT, \""                            + accelVerticalField.getText() + "\");\n");            code.append("chaserProps.put(ThirdPersonMouseLook.PROP_MOUSEROLLMULT, \""                            + accelZoomField.getText() + "\");\n");            code.append("chaserProps.put(ThirdPersonMouseLook.PROP_LOCKASCENT, \""                            + lockPolarBox.isSelected() + "\");\n");        }        code.append("chaser = new ChaseCamera(cam, m_character, chaserProps);\n");        code.append("chaser.setActionSpeed(" + camSpeedField.getText() + ");");        codeArea.setText(code.toString());        codeArea.setCaretPosition(0);    }