public void steppedSimulation(java.awt.event.ActionEvent evt) {
        Global.mode = Global.SIMULATIONMODE;
        setEnabledButtons((JButton) evt.getSource(), buttonGroup1, false);

        if (simulator == null) {
            this.jTextArea1.setText("");
            NetClass n = new NetClass();
            this.javaSource = n.getNetSource().toString();
            simulator = new TimedSimulation(true, this);
            simulator.start();
        } else {
            if (simulator.isAlive()) {
                if (simulator.isPaused()) {
                    simulator.setPaused(false);
                    synchronized (simulator) {
                        this.simulator.notify();
                    }
                } else {
                }
            }
        }
    }