@Override
    public void actionPerformed(ActionEvent e) {
        PanPara panelParam = (PanPara) ((Component)e.getSource()).getParent();
        int StepNumber = 15;
        try {
            StepNumber = Integer.valueOf(panelParam.getTfStepNumber().getText());
        } catch (Exception exp) {
        }
        int StepSpeed = panelParam.getSlStepSpeed().getValue();
        obj.getStep().setStepParameter(StepNumber, StepSpeed);
        
        panelParam.getTfStep().setEnabled(false);
        panelParam.getTfStepNumber().setEnabled(false);
        panelParam.getSlStepSpeed().setEnabled(false);
        panelParam.getSliderNumber().setEnabled(false);
        if (obj.getUpdatedTab().getX() < 50 && obj.getUpdatedTab().getY() < 50) {
            panelParam.getButStepValid().setVisible(false);
        }
        
        for (int j = 0; j < frame.getPanGraphic().getGridWidth(); j++) {
            for (int i = 0; i < frame.getPanGraphic().getGridLength(); i++) {
                frame.getPanGraphic().getGrid()[i][j].addMouseListener(new SetColorJPanelCell(obj, frame));
            }
        }
        
        panelParam.getCbFireMode().setVisible(true);
        panelParam.getCbInvasionMode().setVisible(true);
        panelParam.getRadioPanel().setVisible(true);
        panelParam.getButGeneration().setEnabled(true);
        panelParam.getButNext().setEnabled(true);
        
        frame.getPanMenu().getGeneItem().setEnabled(true);
        frame.getPanMenu().getPlayItem().setEnabled(true);
        frame.getPanMenu().getPauseItem().setEnabled(true);
        frame.getPanMenu().getFireItem().setEnabled(true);
        frame.getPanMenu().getInfectItem().setEnabled(true);
    }