@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		if (!showNumbericDecoration) {
			return;
		}

		Font savedFont = g.getFont();
		g.setFont(Gui.getFont(FONT_ID));
		g.setColor(Messages.HINT);

		Dimension size = getSize();
		Insets insets = getInsets();
		int x;
		if (getHorizontalAlignment() == RIGHT) {
			x = insets.left;
		}
		else {
			x = size.width - insets.right - hintWidth;
		}
		int y = size.height - insets.bottom - 1;
		String mode = isHexMode ? "Hex" : "Dec";
		GraphicsUtils.drawString(this, g, mode, x, y);
		g.setFont(savedFont);
	}
Turns on or off the faded text that displays the field's radix mode (hex or decimal).

@param show true to show the radix mode.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/HexDecimalModeTextField.java