@Override
	protected boolean isFocused( Component c ) {
		if( c instanceof JXDatePicker )
			return FlatUIUtils.isPermanentFocusOwner( ((JXDatePicker)c).getEditor() );

		return super.isFocused( c );
	}
Border for {@link org.jdesktop.swingx.JXDatePicker}.

@author Karl Tauber
flatlaf-swingx/src/main/java/com/formdev/flatlaf/swingx/ui/FlatDatePickerBorder.java