@Override
	public Dimension getPreferredSize( JComponent c ) {
		Dimension dim = datePicker.getEditor().getPreferredSize();
		dim = FlatUIUtils.addInsets( dim, UIScale.scale( padding ) );
		if( popupButton != null )
			dim.width += dim.height;
		return FlatUIUtils.addInsets( dim, datePicker.getInsets() );
	}
Provides the Flat LaF UI delegate for {@link org.jdesktop.swingx.JXDatePicker}.

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