@Override
	public void actionPerformed(ActionEvent e) {
		PreferencesFrame pf = (PreferencesFrame) GUITreeLoader.reg.get(GUITreeComponentRegistry.PREFERENCES_FRAME);
		PreferenceColor pref = (PreferenceColor) getPreference();
		
		if (!clickBlocker) {
			clickBlocker = true;
			Color newColor = JColorChooser.showDialog(pf, getLabelText(), pref.tmp);
			if (newColor != null) {
				pref.tmp = newColor;
				getComponent().setBackground(pref.tmp);
			}
			clickBlocker = false;
		}
	}