int val = minAngleSlider.getValue(); particleMesh.setMinimumAngle((float) val * FastMath.DEG_TO_RAD); updateAngleLabels();
int val = gravZSlider.getValue(); if (particleMesh != null) particleMesh.getGravityForce().z = (float) val * 0.001f;
            public void stateChanged(ChangeEvent e) {                int val = minAngleSlider.getValue();                particleMesh.setMinimumAngle((float) val                        * FastMath.DEG_TO_RAD);                updateAngleLabels();                regenCode();            }