private static final Insets EMPTY_INSETS = new Insets(0, 0, 0, 0);
public static Rectangle getRowBounds(JTable table, int first, int last)
{
Rectangle result = table.getCellRect(first, -1, true);
result = result.union(table.getCellRect(last, -1, true));
Insets i = table.getInsets();
result.x = i.left;
result.width = table.getWidth() - i.left - i.right;