RenParticleEditor.manager = new ParticleManager(particles, RenParticleEditor.manager.getCamera());
RenParticleEditor.manager = new ParticleManager(particles );
  public void resetManager(int particles) {    RenParticleEditor.noUpdate = true;    RenParticleEditor.root.detachChild(RenParticleEditor.manager.getParticles());    RenParticleEditor.manager = new ParticleManager(particles,        RenParticleEditor.manager.getCamera());    ColorRGBA rgba = makeColorRGBA(startColorPanel.getBackground());    rgba.a = (Integer.parseInt(startAlphaSpinner.getValue().toString()) / 255f);    RenParticleEditor.manager.setStartColor(rgba);    rgba = makeColorRGBA(endColorPanel.getBackground());    rgba.a = (Integer.parseInt(endAlphaSpinner.getValue().toString()) / 255f);    RenParticleEditor.manager.setEndColor(rgba);    int val = startSizeSlider.getValue();    RenParticleEditor.manager.setStartSize(val / 10f);    val = endSizeSlider.getValue();    RenParticleEditor.manager.setEndSize(val / 10f);    val = minAgeSlider.getValue();    RenParticleEditor.manager.setParticlesMinimumLifeTime( (float) val);    val = speedSlider.getValue();    RenParticleEditor.manager.setSpeed( (float) val * .1f);    val = gravXSlider.getValue();    RenParticleEditor.manager.getGravityForce().x = (float) val * 0.001f;    val = gravYSlider.getValue();    RenParticleEditor.manager.getGravityForce().y = (float) val * 0.001f;    val = gravZSlider.getValue();    RenParticleEditor.manager.getGravityForce().z = (float) val * 0.001f;    val = emitXSlider.getValue();    RenParticleEditor.manager.getEmissionDirection().x = (float) val * .1f;    val = emitYSlider.getValue();    RenParticleEditor.manager.getEmissionDirection().y = (float) val * .1f;    val = emitZSlider.getValue();    RenParticleEditor.manager.getEmissionDirection().z = (float) val * .1f;    RenParticleEditor.manager.updateRotationMatrix();    val = angleSlider.getValue();    RenParticleEditor.manager.setEmissionMaximumAngle( (float) val *        FastMath.DEG_TO_RAD);    val = randomSlider.getValue();    RenParticleEditor.manager.setRandomMod( (float) val * .1f);    val = rateSlider.getValue();    RenParticleEditor.manager.setReleaseRate(val);    val = rateVarSlider.getValue();    RenParticleEditor.manager.setReleaseVariance( (float) val * .01f);    RenParticleEditor.manager.setRepeatType(spawnBox.isSelected() ? Controller.RT_WRAP : Controller.RT_CLAMP);    RenParticleEditor.manager.setControlFlow(rateBox.isSelected());    rateSlider.setMaximum(particles * 5);    rateSlider.setValue(particles);    RenParticleEditor.manager.getParticles().addController(RenParticleEditor.manager);    val = velocitySlider.getValue();    RenParticleEditor.manager.setInitialVelocity( (float) val * .01f);    updateVelocityLabels();    val = spinSlider.getValue();    RenParticleEditor.manager.setParticleSpinSpeed( (float) val * .01f);    updateSpinLabels();    RenParticleEditor.root.attachChild(RenParticleEditor.manager.getParticles());    RenParticleEditor.root.updateRenderState();    regenCode();    validate();    RenParticleEditor.noUpdate = false;  }