private JTabbedPane findTabbedPane(Component component) {
		if (!(component instanceof Container)) {
			return null;
		}

		Container parent = (Container) component;
		if (parent instanceof JTabbedPane) {
			return (JTabbedPane) parent;
		}

		int n = parent.getComponentCount();
		for (int i = 0; i < n; i++) {
			Component child = parent.getComponent(i);
			JTabbedPane pane = findTabbedPane(child);
			if (pane != null) {
				return pane;
			}
		}

		return null;
	}
Sets the active tab of this chooser to be the given tab name, if it exists (the color chooser
UI may be different, depending upon the current Look and Feel)

@param tabName the tab name
Ghidra/Framework/Docking/src/main/java/docking/options/editor/GhidraColorChooser.java