TestRenParticleGUI.manager.setParticlesSpeed( (float) val * .1f);
TestRenParticleGUI.manager.setFrequency( (float) val * .1f);
  public void resetManager(int particles) {    TestRenParticleGUI.noUpdate = true;    TestRenParticleGUI.root.detachChild(TestRenParticleGUI.manager.getParticles());    TestRenParticleGUI.manager = new RenParticleManager(particles,        TestRenParticleGUI.manager.getCamera());    ColorRGBA rgba = makeColorRGBA(startColorPanel.getBackground());    rgba.a = (Integer.parseInt(startAlphaSpinner.getValue().toString()) / 255f);    TestRenParticleGUI.manager.setStartColor(rgba);    rgba = makeColorRGBA(endColorPanel.getBackground());    rgba.a = (Integer.parseInt(endAlphaSpinner.getValue().toString()) / 255f);    TestRenParticleGUI.manager.setEndColor(rgba);    int val = startSizeSlider.getValue();    TestRenParticleGUI.manager.setStartSize(val / 10f);    val = endSizeSlider.getValue();    TestRenParticleGUI.manager.setEndSize(val / 10f);    val = minAgeSlider.getValue();    TestRenParticleGUI.manager.setParticlesMinimumLifeTime( (float) val);    val = speedSlider.getValue();    TestRenParticleGUI.manager.setParticlesSpeed( (float) val * .1f);    val = gravXSlider.getValue();    TestRenParticleGUI.manager.getGravityForce().x = (float) val * 0.001f;    val = gravYSlider.getValue();    TestRenParticleGUI.manager.getGravityForce().y = (float) val * 0.001f;    val = gravZSlider.getValue();    TestRenParticleGUI.manager.getGravityForce().z = (float) val * 0.001f;    val = emitXSlider.getValue();    TestRenParticleGUI.manager.getEmissionDirection().x = (float) val * .1f;    val = emitYSlider.getValue();    TestRenParticleGUI.manager.getEmissionDirection().y = (float) val * .1f;    val = emitZSlider.getValue();    TestRenParticleGUI.manager.getEmissionDirection().z = (float) val * .1f;    TestRenParticleGUI.manager.updateRotationMatrix();    val = angleSlider.getValue();    TestRenParticleGUI.manager.setEmissionMaximumAngle( (float) val *        FastMath.DEG_TO_RAD);    val = randomSlider.getValue();    TestRenParticleGUI.manager.setRandomMod( (float) val * .1f);    val = rateSlider.getValue();    TestRenParticleGUI.manager.setReleaseRate(val);    val = rateVarSlider.getValue();    TestRenParticleGUI.manager.setReleaseVariance( (float) val * .01f);    TestRenParticleGUI.manager.setRespawnsParticles(spawnBox.isSelected());    TestRenParticleGUI.root.attachChild(TestRenParticleGUI.manager.getParticles());    TestRenParticleGUI.manager.setControlFlow(rateBox.isSelected());    rateSlider.setMaximum(particles * 5);    rateSlider.setValue(particles);    regenCode();    validate();    TestRenParticleGUI.noUpdate = false;  }