@Override
    public void startEvent(){
        try{
            for(int i = 0 ; i < 5; i++){         
                if(inputs[0].getText().isEmpty() && 
                    inputs[1].getText().isEmpty() 
                    && inputs[2].getText().isEmpty()){

                    voltage = DEFAULT_VOLTAGE;
                    current += DEFAULT_CURRENT;
                    resistance = DEFAULT_RESISTANCE;
                    inputs[INDEX_ZERO].setText(Double.toString(voltage));
                    inputs[INDEX_ONE].setText(Double.toString(current));
                    inputs[INDEX_TWO].setText(Double.toString(resistance));
              }

                if(inputs[INDEX_ZERO].getText().isEmpty()){
                   voltage = Double.parseDouble(inputs[INDEX_ONE].getText()) * 
                           Double.parseDouble(inputs[INDEX_TWO].getText());
                   inputs[INDEX_ZERO].setText(Double.toString(convertToDF(voltage)));
                }else{
                    voltage = Double.parseDouble(inputs[INDEX_ZERO].getText());
                }
                if(inputs[INDEX_ONE].getText().isEmpty()){
                    current = Double.parseDouble(inputs[INDEX_ZERO].getText()) /
                        Double.parseDouble(inputs[INDEX_TWO].getText());
                    inputs[INDEX_ONE].setText(Double.toString(convertToDF(current)));
                }else{
                    current = Double.parseDouble(inputs[INDEX_ONE].getText());
                }
                if(inputs[INDEX_TWO].getText().isEmpty()){
                    resistance = Double.parseDouble(inputs[INDEX_ZERO].getText()) / 
                            Double.parseDouble(inputs[INDEX_ONE].getText());
                    inputs[INDEX_TWO].setText(Double.toString(convertToDF(resistance)));
              }else{
                   resistance = Double.parseDouble(inputs[INDEX_TWO].getText());
                }      
                }       
            }catch(Exception a){
                JOptionPane.showMessageDialog(null,
                    "Invalid Input", "Error",
                    JOptionPane.ERROR_MESSAGE);          
            }                    
            if(Math.abs(voltage-(current*resistance)) >= 0.5){
                    JOptionPane.showMessageDialog(null,
                        "Inputs do not respect Ohm's Law", "Error",
                        JOptionPane.ERROR_MESSAGE);
                    circuitAnimationTimeline.stop();
                    }else{
                circuitAnimationTimeline.play();
                }                
                    
    }