public void setShowClearButton( boolean showClearButton ) {
		putClientPropertyBoolean( TEXT_FIELD_SHOW_CLEAR_BUTTON, showClearButton, false );
	}
Specifies whether a "clear" (or "cancel") button is shown on the trailing side
if the text field is not empty, editable and enabled.

@since 2
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/components/FlatFormattedTextField.java