@Override
	public void doLayout() {
		Insets insets = getInsets();
		Rectangle rect = getBounds();
		rect.x = 0;
		rect.y = 0;

		Rectangle compR = border.getComponentRect(rect, insets);
		getTitleComponent().setBounds(compR);
		rect.x += insets.left;
		rect.y += insets.top;
		rect.width -= insets.left + insets.right;
		rect.height -= insets.top + insets.bottom;
		content.setBounds(rect);
	}
Create a panel with <code>titleComponent</code> in the prescribed location with a secondary
 border
@param titleComponent widget to draw in the border
@param titleJustification top-bottom alignment
@param titlePosition left-right alignment
@param otherBorder secondary border to place around this panel
@see TitledBorder
Ghidra/Framework/Docking/src/main/java/docking/widgets/InlineComponentTitledPanel.java