private String getShortenedTitle(String title) {
		if (title.length() > MAX_TITLE_LENGTH) {
			title = title.substring(0, MAX_TITLE_LENGTH - 3) + "...";
		}
		return title;
	}
A widget that can be used to render an icon, title and close button for JTabbedPane.  You would 
use this class with the tabbed pane by calling {@link JTabbedPane#setTabComponentAt(int, Component)}
Ghidra/Framework/Docking/src/main/java/docking/widgets/tabbedpane/DockingTabRenderer.java