public void execute()
    {
	FileDialog fd = new FileDialog(new Frame(),
			(type == Action.EXPORT) ? "Save File" :
			"Open File",
			(type == Action.EXPORT) ? FileDialog.SAVE :
			FileDialog.LOAD );
	fd.setDirectory(directory);
	fd.setVisible(true);
	String file = fd.getFile();
	String dir = fd.getDirectory();
	if ( dir != null )
	    directory = dir;
	if ( file == null )
	    return;
	System.err.println(dir + File.separator + file);
	if ( type == Action.EXPORT )
	{
	    try
	    {
		writeFile(dir + file);
	    }
	    catch (Exception e)
	    {
		e.printStackTrace();
	    }
	}
	else
	{
	    try
	    {
		String dump = readFile(dir + file);
		circuitDump = dump;
		cframe.readSetup(circuitDump);
	    }
	    catch (Exception e)
	    {
		e.printStackTrace();
	    }
	}
    }