private JPanel methodPanel() {
		ButtonGroup buttonGroup = new ButtonGroup();
		JPanel main = new JPanel();
		main.setBorder(BorderFactory.createTitledBorder("By Method"));
		main.setLayout(new GridBagLayout());
		GridBagConstraints gbc = new GridBagConstraints();
		gbc.insets = new Insets(2, 2, 2, 2);
		gbc.anchor = GridBagConstraints.WEST;

		forwardButton = new GRadioButton("Select Forward", true);
		forwardButton.setName("forwardButton");
		forwardButton.getAccessibleContext().setAccessibleName("Forward");
		forwardButton.addActionListener(ae -> {
			setStatusText("Enter number of bytes to select");
			setAddressFieldEnabled(false);
			setLengthInputEnabled(true);
		});
		buttonGroup.add(forwardButton);
		backwardButton = new GRadioButton("Select Backward");
		backwardButton.setName("backwardButton");
		backwardButton.getAccessibleContext().setAccessibleName("Backward");
		backwardButton.addActionListener(ae -> {
			setStatusText("Enter number of bytes to select");
			setAddressFieldEnabled(false);
			setLengthInputEnabled(true);
		});
		buttonGroup.add(backwardButton);
		allButton = new GRadioButton("Select All");
		allButton.setName("allButton");
		allButton.getAccessibleContext().setAccessibleName("All");
		allButton.addActionListener(ae -> {
			setItemsEnabled(false);
			clearStatusText();
		});

		buttonGroup.add(allButton);
		toButton = new GRadioButton("To Address");
		toButton.setName("toButton");
		toButton.getAccessibleContext().setAccessibleName("To Address");
		toButton.addActionListener(ae -> {
			setStatusText("Enter an Address to go to");
			setAddressFieldEnabled(true);
			setLengthInputEnabled(false);
		});
		buttonGroup.add(toButton);
		gbc.gridx = 0;
		gbc.gridy = 0;
		main.add(allButton, gbc);
		gbc.gridy++;
		main.add(toButton, gbc);
		gbc.gridx++;
		gbc.gridy = 0;
		main.add(forwardButton, gbc);
		gbc.gridy++;
		main.add(backwardButton, gbc);
		setStatusText("Enter number of bytes to select");
		main.getAccessibleContext().setAccessibleName("Methods");
		return main;
	}
Class to set up dialog box that will enable the user
to set the available options for block selection
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/select/SelectBlockDialog.java