private void repaintRoundedRowSelection( ListSelectionEvent e ) {
		if( selectionArc <= 0 || !table.getRowSelectionAllowed() )
			return;

		int rowCount = table.getRowCount();
		int columnCount = table.getColumnCount();
		if( rowCount <= 0 || columnCount <= 0 )
			return;

		// repaint including rows before and after changed selection
		int firstRow = Math.max( 0, Math.min( e.getFirstIndex() - 1, rowCount - 1 ) );
		int lastRow = Math.max( 0, Math.min( e.getLastIndex() + 1, rowCount - 1 ) );
		Rectangle firstRect = table.getCellRect( firstRow, 0, false );
		Rectangle lastRect = table.getCellRect( lastRow, columnCount - 1, false );
		table.repaint( firstRect.union( lastRect ) );
	}
Paints a cell selection at the given coordinates.
The selection color must be set on the graphics context.
<p>
This method is intended for use in custom cell renderers to support
{@link #selectionArc} and {@link #selectionInsets}.

@since 3.5
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTableUI.java