@Override
        public void mousePressed(MouseEvent e) {
			if (isEnabled()) {
				setBorder(LOWERED_BORDER);
			}
		}
Mouse listener on the button to render it appropriately.
Ghidra/Framework/Docking/src/main/java/docking/widgets/SmallBorderButton.java