public Component showTab(final String title) {
		DialogComponentProvider dialog = getDialog();
		AtomicReference<Component> result = new AtomicReference<>();
		runSwing(() -> {
			JComponent top = dialog.getComponent();
			JTabbedPane tabs = findComponent(top, JTabbedPane.class);
			if (tabs == null) {
				throw new IllegalStateException("No tab pane is present in current dialog");
			}
			int index = tabs.indexOfTab(title);
			if (index == -1) {
				throw new IllegalStateException("No such tab by title: " + title);
			}
			tabs.setSelectedIndex(index);
			result.set(tabs.getSelectedComponent());
		});
		waitForSwing();
		return result.get();
	}
Crops a part of the current image, keeping what is inside the given bounds. This method
creates a shape such that the top and bottom of the cropped image have a jagged line, looking
somewhat like a sideways lightening bolt.

@param bounds the bounds to keep
@return the snippet
Ghidra/Features/Base/src/main/java/help/screenshot/AbstractScreenShotGenerator.java