@Override
				public void mousePressed(MouseEvent e) {
					Color newColor =
						JColorChooser.showDialog(ColorPanel.this, "Select Color", getBackground());
					colorService.setColor(type, newColor);
				}
Kick to repaint when the colors have changed.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/overview/addresstype/AddressTypeOverviewLegendPanel.java