private JPanel createChoicePanel() {
		JPanel radioChoicePanel = new JPanel(new BorderLayout());

		createNewStructButton = new GRadioButton("Create New");
		createNewStructButton.getAccessibleContext().setAccessibleName("Create New");
		useExistingStructButton = new GRadioButton("Use Existing");
		useExistingStructButton.getAccessibleContext().setAccessibleName("Use Existing");

		ButtonGroup buttonGroup = new ButtonGroup();
		buttonGroup.add(createNewStructButton);
		buttonGroup.add(useExistingStructButton);
		createNewStructButton.setSelected(true);
		ItemListener choiceListener = event -> updateEnablement();
		createNewStructButton.addItemListener(choiceListener);
		useExistingStructButton.addItemListener(choiceListener);

		JPanel createNewStructPanel = new JPanel();
		createNewStructPanel.setLayout(new BoxLayout(createNewStructPanel, BoxLayout.Y_AXIS));
		// force the radio button to the left for clarity
		createNewStructPanel.setAlignmentX(Component.LEFT_ALIGNMENT);
		// indent everything under the radio button
		createNewStructPanel.setBorder(BorderFactory.createEmptyBorder(5, 30, 15, 5));

		JPanel useExistingStructPanel = new JPanel();
		useExistingStructPanel.setLayout(new BoxLayout(useExistingStructPanel, BoxLayout.Y_AXIS));
		useExistingStructPanel.setAlignmentX(Component.LEFT_ALIGNMENT);
		useExistingStructPanel.setBorder(BorderFactory.createEmptyBorder(0, 30, 10, 5));

		createNewStructPanel.add(buildCreateNewStructPanel());
		useExistingStructPanel.add(buildMatchingStructPanel());

		JPanel top = new JPanel();
		top.setLayout(new BoxLayout(top, BoxLayout.PAGE_AXIS));
		top.add(createNewStructButton);
		top.add(createNewStructPanel);

		JPanel center = new JPanel();
		center.setLayout(new BoxLayout(center, BoxLayout.PAGE_AXIS));
		center.add(useExistingStructButton);
		center.add(useExistingStructPanel);

		// we would like the structure table to get all extra space, so put it in the center
		radioChoicePanel.add(top, BorderLayout.NORTH);
		radioChoicePanel.add(center, BorderLayout.CENTER);

		return radioChoicePanel;
	}
Creates a new dialog with the given parent.

@param tool The current tool that this dialog needs to access services.
@param program the current program
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/data/CreateStructureDialog.java