public void finalizeStateRemove() {
		if (collapseState == null) {
			JOptionPane.showMessageDialog(frame,
					"A valid state has not been selected yet!",
					"No State Selected", JOptionPane.ERROR_MESSAGE);
			return;
		}
		FSAToRegularExpressionConverter.removeState(collapseState, transitionWindow.getTransitions(),
				automaton);
		remaining--;
		nextStep();
		collapseState = null;
		drawer.clearSelected();
		drawer.clearSelectedTransitions();
		// transitionWindow.setTransitions(new Transition[0]);
		transitionWindow.setVisible(false);
		transitionWindow.dispose();
		// transitionWindow.hide();
	}