void (Graphics g) { super.paint(g); if (myMousePoint != null) { final int index = locationToIndex(myMousePoint); if (index != -1) { final Rectangle iconRect = getCloseIconRect(index); Icon actionIcon = detectActionIcon(index, iconRect.contains(myMousePoint)); Icon icon = toSize(actionIcon); icon.paintIcon(this, g, iconRect.x, iconRect.y); } } }