private void setCompositeSize(int size) {
		boolean sizeIsEditable = model.isSizeEditable();
		if (sizeTextField.isEditable() != sizeIsEditable) {
			setSizeEditable(sizeIsEditable);
		}
		String sizeStr = model.showHexNumbers ? CompositeViewerModel.getHexString(size, true)
				: Integer.toString(size);
		sizeTextField.setText(sizeStr);
		sizeTextField.setDefaultValue(sizeStr);
	}
Sets the currently displayed composite's size.

@param size the new size
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompEditorPanel.java