int val = minAgeSlider.getValue(); particleMesh.setMinimumLifeTime((float)val); updateAgeLabels();
int val = endSizeSlider.getValue(); particleMesh.setEndSize(val / 10f); updateSizeLabels();
            public void stateChanged(ChangeEvent e) {                int val = minAgeSlider.getValue();                particleMesh.setMinimumLifeTime((float)val);                updateAgeLabels();                regenCode();            }