@Override
    public void setScene(){
        
        circuitAnimationScene = new Scene(root_circuit, sceneWidth, sceneHeight);
        setGraph();
        setButtonEvent();
        setTimelineEvent();        
        
            for(int i = 0; i < 3; i++){
                inputs[i] = new TextField();    
                inputs[i].setMaxWidth(100);           
                inputs[i].setOnAction(buttonAction);
            }
            for(int x = 0; x < 2; x++){
                iv[x] = new ImageView();
                iv[x].setFitHeight(50);
                iv[x].setFitWidth(50);
                root_circuit.getChildren().addAll(iv[x]);
            }
            
// Image positions            
            iv[INDEX_ZERO].setImage(lightbulb);
            iv[INDEX_ZERO].setTranslateX(275);
            iv[INDEX_ZERO].setTranslateY(170);
// Image positions            
            iv[1].setImage(battery);           
            iv[1].setTranslateX(285);
            iv[1].setTranslateY(275);
            
            inputs[INDEX_ZERO].setPromptText("Input Voltage");
            inputs[INDEX_ONE].setPromptText("Input current");
            inputs[INDEX_TWO].setPromptText("Input Resistance");
            
            for(int i = 0; i <3 ; i++){
                brightness[i] = new Line();
                brightness[i].setStroke(Color.YELLOW);
                brightness[i].setStrokeType(StrokeType.OUTSIDE);
                brightness[i].setOpacity(0);
                root_circuit.getChildren().addAll(brightness[i]);
            }    
                brightness[INDEX_ZERO].setStartX(275);
                brightness[INDEX_ZERO].setStartY(190);
                brightness[INDEX_ONE].setStartX(300);
                brightness[INDEX_ONE].setStartY(165);
                brightness[INDEX_TWO].setStartX(325);
                brightness[INDEX_TWO].setStartY(190);
                
                brightness[INDEX_ZERO].setEndX(240);
                brightness[INDEX_ZERO].setEndY(170);
                brightness[INDEX_ONE].setEndX(300);
                brightness[INDEX_ONE].setEndY(145);
                brightness[INDEX_TWO].setEndX(360);
                brightness[INDEX_TWO].setEndY(170);

            buttonGroup_circuit.getChildren().addAll(voltage_Label, inputs[INDEX_ZERO], current_Label, inputs[INDEX_ONE],
                    resistance_Label, inputs[INDEX_TWO],startButtonCircuit,stopButtonCircuit,resetButtonCircuit,
                    helpButtonCircuit,backButtonCircuit);
            buttonGroup_circuit.setSpacing(10);
            buttonGroup_circuit.setPadding(new Insets(10,10,10,10));

        for(int i = 0; i < electron.length; i++){
            electron[i] = new Circle(295, POINT1Y, 5, Color.RED);
            root_circuit.getChildren().addAll(electron[i]);
        }
        root_circuit.getChildren().addAll(electronPath());
        root_circuit.setTop(buttonGroup_circuit);
    }