@Override
    public void startEvent(){
        try{
            if(inputAmplitude_SHM.getText().isEmpty()){
                amplitude = DEFAULT_AMPLITUDE;
                inputAmplitude_SHM.setText(Double.toString(amplitude));
            }else{
                amplitude = Double.parseDouble(inputAmplitude_SHM.getText());
                if(amplitude>DEFAULT_AMPLITUDE)
                    graph.setBounds(1, amplitude, 0, -1*amplitude);
            }
            if(inputFrequency_SHM.getText().isEmpty()){
                frequency = DEFAULT_FREQUENCY;
                inputFrequency_SHM.setText(Double.toString(frequency));
            }else{
                frequency = Double.parseDouble(inputFrequency_SHM.getText());
            }   
        }catch(Exception ex){
            JOptionPane.showMessageDialog(null, error);
        }   
        waveAnimationTimeline.play();
    }