void updateLayout() {

		if (toolbar == null) {
			if (numLines != 1) {
				constructOneLinePanel();
			}
			return;
		}

		Dimension mySize = getSize();
		Dimension toolBarSize = toolbar.getPreferredLayoutSize();
		Dimension d = menuCloseToolbar.getPreferredSize();
		if (mySize.width == 0 || toolBarSize.width + d.width + MINIMUM_TITLE_SIZE < mySize.width ||
			useSingleLineLayoutOverride) {
			if (numLines != 1) {
				constructOneLinePanel();
			}
		}
		else if (numLines != 2) {
			constructMultiLinePanel();
		}

	}
Signals whether or not to break the toolbar actions into multiple rows.  The default is
to wrap as necessary.
@param noWrap true signals not to break the actions into multiple rows
Ghidra/Framework/Docking/src/main/java/docking/GenericHeader.java