private void export(boolean b) throws IOException
	{
		int result = jfc.showSaveDialog(drawComponent1);
		if(result == JFileChooser.APPROVE_OPTION)
		{
			File file = jfc.getSelectedFile();	
			String datatype = "";
			if(jfc.getFileFilter().getDescription().equals("SVG-Dateien"))
			{
				datatype = ".svg";
			}
			else if(jfc.getFileFilter().getDescription().equals("JPG-Dateien"))
			{
				datatype = ".jpeg";
			}
			if(file.exists())
			{
				result = JOptionPane.showOptionDialog(drawComponent1, "Datei ueberschreiben?", null,
						JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE,
						null, null, null);
				switch(result)
				{
				case 0:
					if(b)
					{
						((DrawComponent) ((JScrollPane) jTabbedPane2.getSelectedComponent()).getViewport().getView()).export(file.getPath());
					}
					else
					{
						drawComponent1.export(file.getPath());
						drawComponent2.export(file.getPath());
					}
					break;
				case 1: menuItemExportCurrentActionPerformed(null);
				break;
				case 2: break;
				}
			}
			else
			{
				if(b)
				{
					((DrawComponent) ((JScrollPane) jTabbedPane2.getSelectedComponent()).getViewport().getView()).export(file.getPath() + datatype);
				}
				else
				{
					drawComponent1.export(file.getPath() + "_Wirkschaltplan" + datatype);
					drawComponent2.export(file.getPath() + "_Stromlaufplan" + datatype);
				}
			}
		}
	}