public void actionPerformed(ActionEvent e) {
		String cmd = e.getActionCommand();
		
		if (cmd == COMMAND_APPLY || cmd == COMMAND_OK) {
			saveConfiguration();
		}
		
		if (cmd == COMMAND_CANCEL || cmd == COMMAND_OK) {
			this.setVisible(false);
		}
		
		if (cmd == COMMAND_RESET) {
			if (JOptionPane.showConfirmDialog(this,
					"Are you sure you want to reset all settings?", 
					"Setting reset",
					JOptionPane.OK_CANCEL_OPTION)
					== JOptionPane.OK_OPTION) {
				config.reset();
				reloadConfiguration();
			}
		}
	}