@Override
	public String getToolTipText(MouseEvent event) {

		int hintStart = getBounds().width - hintWidth;
		if (event.getX() > hintStart) {
			String key = DockingUtils.CONTROL_KEY_NAME;
			return "Press '" + key + "-M' to toggle Hex or Decimal Mode";
		}

		return null;
	}
Overrides the JTextField mainly to allow hint painting for the current radix mode.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/HexDecimalModeTextField.java