public FrameOptions() {
		propsFile = new File(MacroHelper.currentPath + "/config/config.txt");
		int lastIndex = 0;
		try {
			if(!propsFile.exists())
				propsFile.getParentFile().mkdirs();
			propsFile.createNewFile();
			props =  PropertiesUtils.reloadProperties(propsFile);
			if(props.getProperty("last-selected-option-index") == null)
				props.setProperty("last-selected-option-index", "0");
			try{
				lastIndex = Integer.parseInt(props.getProperty("last-selected-option-index"));
			} catch (NumberFormatException e){
				props.setProperty("last-selected-option-index", "0");
			}
			PropertiesUtils.saveProperties(props, propsFile, "MacroHelper Options for onPlayerJoined");
		} catch (IOException e) {
			 e.printStackTrace();
		}
		Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
		setTitle("MacroHelper Options");
		setSize(WIDTH, HEIGHT);
		setLocation((screen.width - WIDTH)/2, (screen.height - HEIGHT)/2);
		setResizable(false);
		tabs = new JTabbedPane();
		tabs.addTab("Macro Editor", new OptionMacroEditor(this));
		tabs.addTab("onPlayerJoined", new OptionPanelPlayerJoined(this));
		tabs.addChangeListener(this);
		tabs.setSelectedIndex(lastIndex);
		add(tabs);
	}