private String getText() {
		String text = labelNameChoices.getText();
		if (text != null) {
			text = text.trim();
		}
		return text;
	}
Define the Main panel for the dialog here.
Ghidra/Features/Base/src/main/java/ghidra/app/util/AddEditDialog.java