int val = randomSlider.getValue(); particleMesh.setRandomMod((float) val * .1f); updateRandomLabels();
int val = minAgeSlider.getValue(); particleMesh.setMinimumLifeTime((float)val); updateAgeLabels();
            public void stateChanged(ChangeEvent e) {                int val = randomSlider.getValue();                particleMesh.setRandomMod((float) val * .1f);                updateRandomLabels();                regenCode();            }