Rectangle (ComponentDragObject dragObject, boolean ignoreWidth, boolean ignoreHeight, boolean overlapping) { Rectangle cellRect = getGridFeedbackCellRect(dragObject, ignoreWidth, ignoreHeight, overlapping); if (cellRect == null) return null; int h = ignoreHeight ? 0 : cellRect.height; int w = ignoreWidth ? 0 : cellRect.width; return getContainer().getGridLayoutManager().getGridCellRangeRect(getContainer(), cellRect.y, cellRect.x, cellRect.y+h, cellRect.x+w); }