private void buildComponent() {
		setLayout(new BorderLayout());
		textField = new HexDecimalModeTextField(10, b -> hexModeChanged(b));
		textField.setHexMode(true);
		textField.setName("JTextField");//for JUnits...
		addressSpaceField = new AddressSpaceField();
		add(textField, BorderLayout.CENTER);
		comboAdded = false;

		textField.getDocument().addDocumentListener(new DocumentListener() {
			@Override
			public void insertUpdate(DocumentEvent e) {
				notifyAddressChanged();
			}

			@Override
			public void removeUpdate(DocumentEvent e) {
				notifyAddressChanged();
			}

			@Override
			public void changedUpdate(DocumentEvent e) {
				notifyAddressChanged();
			}
		});

	}
Returns true if the address input field is editable.
@return true if the address input field is editable.
Ghidra/Features/Base/src/main/java/ghidra/app/util/AddressInput.java