int val = rateSlider.getValue(); particleMesh.setReleaseRate(val); updateRateLabels();
int val = minAngleSlider.getValue(); particleMesh.setMinimumAngle((float) val * FastMath.DEG_TO_RAD); updateAngleLabels();
            public void stateChanged(ChangeEvent e) {                int val = rateSlider.getValue();                particleMesh.setReleaseRate(val);                updateRateLabels();                regenCode();            }