}
public void exitMenuItem_ActionPerformed() {	GetGUIInterface cmd = (GetGUIInterface)CommandManager.getInstance().getCommand("GetGUIMenuInterface");	if (cmd!=null)	{		Settings.getInstance().save();		if (cmd.getGUIMenuInterface().isModified())		{			if (JOptionPane.showConfirmDialog(this, "The file has been modified. Discard changes and exit?", "Confirmation", 				JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE)==JOptionPane.OK_OPTION)			this.dispose();		}		else			this.dispose();	}	else		this.dispose();}