code.append("manager.setParticlesSpeed(" + TestRenParticleGUI.manager.getParticlesSpeed() + "f);\n");
code.append("manager.setFrequency(" + TestRenParticleGUI.manager.getFrequency() + "f);\n");
  private void regenCode() {    StringBuffer code = new StringBuffer();    if (TestRenParticleGUI.manager == null) {      codeTextArea.setText("");      return;    }    code.append("RenParticleManager manager = new RenParticleManager(" +                TestRenParticleGUI.manager.getParticlesNumber() +                ", display.getRenderer().getCamera());\n");    code.append("manager.setGravityForce(" +                codeString(TestRenParticleGUI.manager.getGravityForce()) +                ");\n");    code.append("manager.setEmissionDirection(" +                codeString(TestRenParticleGUI.manager.getEmissionDirection()) +                ");\n");    code.append("manager.setEmissionMaximumAngle(" +                TestRenParticleGUI.manager.getEmissionMaximumAngle() + "f);\n");    code.append("manager.setParticlesSpeed(" +                TestRenParticleGUI.manager.getParticlesSpeed() + "f);\n");    code.append("manager.setParticlesMinimumLifeTime(" +                TestRenParticleGUI.manager.getParticlesMinimumLifeTime() +                "f);\n");    code.append("manager.setStartSize(" +                TestRenParticleGUI.manager.getStartSize() + "f);\n");    code.append("manager.setEndSize(" + TestRenParticleGUI.manager.getEndSize() +                "f);\n");    code.append("manager.setStartColor(" +                codeString(TestRenParticleGUI.manager.getStartColor()) + ");\n");    code.append("manager.setEndColor(" +                codeString(TestRenParticleGUI.manager.getEndColor()) + ");\n");    code.append("manager.setRandomMod(" +                TestRenParticleGUI.manager.getRandomMod() + "f);\n");    code.append("manager.setControlFlow(" +                TestRenParticleGUI.manager.getControlFlow() + ");\n");    code.append("manager.setReleaseRate(" +                TestRenParticleGUI.manager.getReleaseRate() + ");\n");    code.append("manager.setReleaseVariance(" +                TestRenParticleGUI.manager.getReleaseVariance() + "f);\n");    code.append("\n");    code.append("Node myNode = new Node(\"Particle Nodes\")\n");    code.append("myNode.setRenderState(YOUR TEXTURE STATE);\n");    code.append("myNode.setRenderState(YOUR ALPHA STATE);\n");    code.append("myNode.attachChild(manager.getParticles());\n");    codeTextArea.setText(code.toString());    codeTextArea.setCaretPosition(0);  }