@Override
		public JComponent prepareRenderingComponent( JXMonthView monthView, Calendar calendar,
			CalendarState dayState )
		{
			JComponent c = super.prepareRenderingComponent( monthView, calendar, dayState );

			int px = monthView.getBoxPaddingX();
			int py = monthView.getBoxPaddingY();

			// scale borders
			Border border = null;
			if( dayState == CalendarState.TITLE &&  monthView.isTraversable() ) {
				Border b = c.getBorder();
				if( b instanceof CompoundBorder && ((CompoundBorder)b).getInsideBorder() instanceof EmptyBorder )
					border = new CompoundBorder( ((CompoundBorder)b).getOutsideBorder(), new FlatEmptyBorder( py * 2, 0, py * 2, 0 ) );
			} else if( dayState == CalendarState.TODAY ) {
				Color lineColor = monthView.getTodayBackground();
				if( lineColor == null )
					lineColor = todayColor;
				border = new FlatLineBorder( new Insets( py, px, py, px ), lineColor );
			}

			if( border == null )
				border = new FlatEmptyBorder( py, px, py, px );
			c.setBorder( border );

			return c;
		}
Provides the Flat LaF UI delegate for {@link org.jdesktop.swingx.JXMonthView}.

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