protected JPanel buildMainPanel(String prompt, boolean showAsHex) {
		JPanel panel = createPanel(prompt);
		numberInputField.addActionListener(e -> {
			if (okButton.isEnabled()) {
				okCallback();
			}
		});

		if (showAsHex) {
			numberInputField.setHexMode();
		}
		if (min.compareTo(BigInteger.valueOf(0)) >= 0) {
			numberInputField.setAllowNegativeValues(false);
		}
		return panel;
	}
Define the Main panel for the dialog here
@param prompt the prompt label text
@param showAsHex if true, show the value as hex
@return JPanel the completed <CODE>Main Panel</CODE>
Ghidra/Framework/Docking/src/main/java/docking/widgets/dialogs/AbstractNumberInputDialog.java