@Override
		protected void paintComponent(Graphics g) {
			super.paintComponent(g);

			if (showFieldDecoration) {
				Font font = Gui.getFont(FONT_ID);
				Font savedFont = g.getFont();
				g.setFont(font);
				g.setColor(Messages.HINT);
				FontMetrics fontMetrics = getFontMetrics(font);
				String label = isMonthMode ? MONTH_LABEL : DAY_LABEL;
				int stringWidth = fontMetrics.stringWidth(label);
				Dimension size = getSize();
				Insets insets = getInsets();
				int x = size.width - insets.right - stringWidth;
				int y = size.height - insets.bottom;
				GraphicsUtils.drawString(this, g, label, x, y);
				g.setFont(savedFont);
			}
		}
Removes the changes listener.
@param listener the listener to be removed.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/LocalDateTextField.java