private void setCreateButtonInfo(int rowCount, int selectedRowCount) {
		if (rowCount == 0) {
			createButton.setText("Create");
			createButton.setEnabled(false);
			return;
		}
		String createMessage = isSingleStringMode() ? "Create"
				: "Create %s"
						.formatted(rowCount == selectedRowCount || selectedRowCount == 0 ? "All"
								: "Selected (%d)".formatted(selectedRowCount));
		createButton.setEnabled(true);
		createButton.setText(createMessage);

	}
For test/screen shot use

@return button
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java