public void loadPreset(String presetName)
			{
				BufferedReader in = null;
				SimulationWindow sim = Hub.simWindow;

				try
					{
						sim.sim.pause();
						
						File presetFile = new File(saveDirectory + "//" + presetName);

						in = new BufferedReader(new FileReader(presetFile));
						in.readLine();// Plants
						sim.plantOptionsMenu.setX(-200);
						/**/sim.add(sim.plantOptionsMenu);
						sim.leafSizeSlider.setValue(readValueFromLine(in.readLine()));
						sim.stalkLengthSlider.setValue(readValueFromLine(in.readLine()));
						sim.mutantOffspringSlider.setValue(readValueFromLine(in.readLine()));
						sim.dnaDamageSlider.setValue(readValueFromLine(in.readLine()));
						/**/sim.remove(sim.plantOptionsMenu);
						in.readLine();// /n
						in.readLine();// Light
						sim.lightOptionsMenu.setX(-200);
						/**/sim.add(sim.lightOptionsMenu);
						sim.redLightSlider.setValue(readValueFromLine(in.readLine()));
						sim.greenLightSlider.setValue(readValueFromLine(in.readLine()));
						sim.blueLightSlider.setValue(readValueFromLine(in.readLine()));
						sim.leafOpacitySlider.setValue(readValueFromLine(in.readLine()));
						/**/sim.remove(sim.lightOptionsMenu);
						
						sim.sim.unpause();
					}
				catch (Exception e)
					{
						if (presetName == "default.txt")
							createDefaultPresetFile();

						loadPreset("default.txt");
					}
				finally
					{
						try
							{
								in.close();
							}
						catch (IOException e)
							{
								e.printStackTrace();
							}
						
						sim.sim.unpause();
					}
			}