private void saveAs()
	{
		JFileChooser saveFile = new JFileChooser();
		saveFile.setFileFilter(new FileNameExtensionFilter("Gravity files (*.glf)", "glf"));

		if (saveFile.showSaveDialog(this) == JFileChooser.APPROVE_OPTION)
		{
			String strFileName = saveFile.getSelectedFile().getAbsolutePath();
			boolean save = false;
			if (saveFile.getSelectedFile().exists())
			{
				if (JOptionPane.showConfirmDialog(this, "Wilt u dit bestand overschrijven?") == JOptionPane.YES_OPTION)
				{
					save = true;
				}
			}
			else
			{
				save = true;
			}
			if (save)
			{
				GravityIO gIO = new GravityIO(control);
				if (!strFileName.toLowerCase().endsWith(".glf"))
				{
					strFileName = strFileName.concat(".glf");
				}
				try
				{
					gIO.save(strFileName);
				}
				catch (IOException e)
				{
					e.printStackTrace();
					JOptionPane.showMessageDialog(this, "Could not be saved!", "error", JOptionPane.ERROR_MESSAGE);
				}
				catch (Exception e)
				{

				}
			}
		}
	}