@Override
	public void uninstallChooserPanel(JColorChooser enclosingChooser) {
		ColorSelectionModel model = getColorSelectionModel();
		model.removeChangeListener(colorValueUpdateListener);

		super.uninstallChooserPanel(enclosingChooser);
		swatchPanel.removeMouseListener(mainSwatchListener);
		recentSwatchPanel.removeMouseListener(recentSwatchListener);
		historySwatchPanel.removeMouseListener(historySwatchListener);
		colorNameField.getDocument().removeDocumentListener(colorNameListener);

		removeAll();  // strip out all the sub-components
	}
The background color, foreground color, and font are already set to the
defaults from the defaults table before this method is called.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/SettableColorSwatchChooserPanel.java