public void load(String filename)
	{
		FileInputStream fis = null;
		ObjectInputStream in = null;
		try
		{
			fis = new FileInputStream(filename);
			in = new ObjectInputStream(fis);
			Object read = in.readObject();
			if (read instanceof EditorControl)
			{
				hiScore = new ArrayList<HiScoreEntry>();
				hiScore.addAll(((EditorControl) read).getHiScore());
				levels = new TreeMap<String, EditorLevelInformation>();
				levels.putAll(((EditorControl) read).getLevels());
				editorEnabled = ((EditorControl) read).isEditorEnabled();
			}
			in.close();
		}
		catch (FileNotFoundException e)
		{
			JOptionPane.showMessageDialog(new JFrame(), "Could not find data.glf", "Error 2404", JOptionPane.WARNING_MESSAGE);
			System.exit(0);
		}
		catch (ClassNotFoundException e)
		{
			JOptionPane.showMessageDialog(new JFrame(), "Could not read data.glf", "Error 2405", JOptionPane.WARNING_MESSAGE);
			System.exit(0);
		}
		catch (IOException e)
		{
			JOptionPane.showMessageDialog(new JFrame(), "Could not read data.glf", "Error 2406", JOptionPane.WARNING_MESSAGE);
			System.exit(0);
		}
	}