gravXSlider.setValue((int)(TestRenParticleGUI.manager.getGravityForce().x * 500)); gravYSlider.setValue((int)(TestRenParticleGUI.manager.getGravityForce().y * 500)); gravZSlider.setValue((int)(TestRenParticleGUI.manager.getGravityForce().z * 500));
gravXSlider.setValue((int)(TestRenParticleGUI.manager.getGravityForce().x * 1000)); gravYSlider.setValue((int)(TestRenParticleGUI.manager.getGravityForce().y * 1000)); gravZSlider.setValue((int)(TestRenParticleGUI.manager.getGravityForce().z * 1000));
  public void updateFromManager() {    startColorPanel.setBackground(makeColor(TestRenParticleGUI.manager.getStartColor(), false));    endColorPanel.setBackground(makeColor(TestRenParticleGUI.manager.getEndColor(), false));    startAlphaSpinner.setValue(new Integer(makeColor(TestRenParticleGUI.manager.getStartColor(), true).getAlpha()));    endAlphaSpinner.setValue(new Integer(makeColor(TestRenParticleGUI.manager.getEndColor(), true).getAlpha()));    updateColorLabels();    startSizeSlider.setValue((int)(TestRenParticleGUI.manager.getStartSize() * 10));    endSizeSlider.setValue((int)(TestRenParticleGUI.manager.getEndSize() * 10));    updateSizeLabels();    minAgeSlider.setValue((int)(TestRenParticleGUI.manager.getParticlesMinimumLifeTime()));    updateAgeLabels();    speedSlider.setValue((int)(TestRenParticleGUI.manager.getParticlesSpeed() * 1000));    updateSpeedLabels();    gravXSlider.setValue((int)(TestRenParticleGUI.manager.getGravityForce().x * 500));    gravYSlider.setValue((int)(TestRenParticleGUI.manager.getGravityForce().y * 500));    gravZSlider.setValue((int)(TestRenParticleGUI.manager.getGravityForce().z * 500));    emitXSlider.setValue((int)(TestRenParticleGUI.manager.getEmissionDirection().x * 10));    emitYSlider.setValue((int)(TestRenParticleGUI.manager.getEmissionDirection().y * 10));    emitZSlider.setValue((int)(TestRenParticleGUI.manager.getEmissionDirection().z * 10));    angleSlider.setValue((int)(TestRenParticleGUI.manager.getEmissionMaximumAngle() * FastMath.RAD_TO_DEG));    updateAngleLabels();    randomSlider.setValue((int)(TestRenParticleGUI.manager.getRandomMod() * 10));    updateRandomLabels();    validate();  }