int val = maxAgeSlider.getValue(); particleMesh.setMaximumLifeTime((float)val); updateAgeLabels();
int val = startSizeSlider.getValue(); particleMesh.setStartSize(val / 10f); updateSizeLabels();
            public void stateChanged(ChangeEvent e) {                int val = maxAgeSlider.getValue();                particleMesh.setMaximumLifeTime((float)val);                updateAgeLabels();                regenCode();            }