private JComponent buildByteOptionsPanel() {
		JPanel panel = new JPanel(new PairLayout(3, 2));
		panel.setBorder(createBorder("Byte Options"));

		String[] endianess = new String[] { "Big", "Little" };
		endianessCombo = new GComboBox<>(endianess);
		endianessCombo.setSelectedIndex(model.isBigEndian() ? 0 : 1);
		endianessCombo.addItemListener(this::endianessComboChanged);
		endianessCombo.setToolTipText("Selects the endianess");

		JTextField alignField = new JTextField(5);
		alignField.setDocument(new RestrictedInputDocument());
		alignField.setName("Alignment");
		alignField.setText(Integer.toString(model.getAlignment()));
		alignField.setToolTipText(
			"Filters out matches whose address is not divisible by the alignment value");

		panel.add(new JLabel("Endianess:"));
		panel.add(endianessCombo);
		panel.add(new JLabel("Alignment:"));
		panel.add(alignField);

		return panel;
	}
Internal panel of the memory search window that manages the controls for the search settings.
This panel can be added or removed via a toolbar action. Not showing by default.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/MemorySearchOptionsPanel.java