void (MouseEvent e) { if (!cellComponentProvider.isEditing(e)) { cellPopup = popupBuilder.createPopup(); cellRect = cellComponentProvider.getCellRect(e); JComponent c = cellComponentProvider.getCellRendererComponent(e); Insets i = c != null ? c.getInsets() : JBInsets.emptyInsets(); Point point = new Point(cellRect.x + JBUIScale.scale(40), cellRect.y + i.top - JBUIScale.scale(6) - popupSize.height); cellPopup.show(new RelativePoint(cellComponentProvider.getOwner(), point)); } }