protected void updateBorderBasedOnState() {
		if (!isEnabled()) {
			return;
		}

		ButtonModel buttonModel = getModel();
		boolean pressed = buttonModel.isPressed();
		boolean rollover = buttonModel.isRollover();
		boolean armed = buttonModel.isArmed();

		if (pressed && (rollover || armed)) {
			setBorder(getLoweredBorder());
		}
		else if (rollover) {
			setBorder(getRaisedBorder());
		}
		else if (isFocusOwner()) {
			setBorder(getFocusedBorder());
		}
		else {
			setBorder(NO_BUTTON_BORDER);
		}
	}
Construct a new EmptyBorderButton that has text and an icon.
@param text button text
@param icon icon for the button
Ghidra/Framework/Docking/src/main/java/docking/widgets/EmptyBorderButton.java