public void stateChanged(ChangeEvent e) {
            if(e.getSource().getClass()==JSlider.class) {
                JSlider source = (JSlider)e.getSource();
                if (!source.getValueIsAdjusting()) {
                    int interval = (int)source.getValue();
                    if(interval<SimulationPlayer.INTERVAL_MIN) {
                        interval = SimulationPlayer.INTERVAL_MIN;
                    }
                    Time.changeInterval(interval);
                    if(player!=null) {
                        player.updateTimer();
                    }
                }
            }
            else if(e.getSource().getClass()==JSpinner.class) {
                JSpinner source = (JSpinner)e.getSource();
                if(TIME_INTERVAL.equals(source.getName())) {
                    int val = (Integer) source.getValue();
                    process.changeCatchersNumber(val);
                }
                else if(LCP.equals(source.getName())) {
                    double val = (Double) source.getValue();
                    Runner.changeLCP(val);
                }
                else if(GCP.equals(source.getName())) {
                    double val = (Double) source.getValue();
                    Runner.changeGCP(val);
                }

            }
        }