@Override
	public void paintValue(Graphics gfx, Rectangle box) {
		if (color != null) {
			gfx.setColor(color);
		}
		else {
			gfx.setColor(Palette.BLACK);
		}
		gfx.fillRect(box.x, box.y, box.width, box.height);
	}
Color editor that is a bit unusual in that its custom component is a button that when pushed,
pops up a dialog for editing the color. Use {@link ColorPropertyEditor} for a more traditional
property editor that returns a direct color editing component.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/ColorEditor.java