private void tableMousePressed( MouseEvent e ) {
		if( !SwingUtilities.isRightMouseButton( e ) )
			return;

		int row = table.rowAtPoint( e.getPoint() );
		if( row >= 0 && !table.isRowSelected( row ) )
			table.setRowSelectionInterval( row, row );
	}
Creates a UI defaults inspector panel that can be embedded into any window.
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatUIDefaultsInspector.java