public void newNet() {

        if (simulator == null || !simulator.isAlive()) {
            NetObject.LATEST_ID = 0;
            canvas.getSelectionManager().removeSelectedFigures();
            Global.petriNet = new PetriNet();
            canvas.setFigures(new HashMap());
            canvas.repaint();
            this.setTitle(Global.petriNet.getLabel());
            this.jTextArea1.setText("");
        }
    }