|
|
@ -90,6 +90,7 @@ public class CellHintPopupListener<T extends JComponent, I> extends MouseInputAd |
|
|
|
final boolean isEditing = cellContainer.isEditingCell(index); |
|
|
|
final boolean isEditing = cellContainer.isEditingCell(index); |
|
|
|
final Rectangle allocation = cellContainer.getAllocation(); |
|
|
|
final Rectangle allocation = cellContainer.getAllocation(); |
|
|
|
final Rectangle cellBounds = cellContainer.getCellBoundsAt(index, isEditing); |
|
|
|
final Rectangle cellBounds = cellContainer.getCellBoundsAt(index, isEditing); |
|
|
|
|
|
|
|
if (cellBounds != null && allocation != null) { |
|
|
|
final Rectangle visibleBounds = allocation.intersection(cellBounds); |
|
|
|
final Rectangle visibleBounds = allocation.intersection(cellBounds); |
|
|
|
if (visibleBounds.contains(p)) { |
|
|
|
if (visibleBounds.contains(p)) { |
|
|
|
final Component comp = cellContainer.getEffectiveCellRendererComponent(index, isEditing); |
|
|
|
final Component comp = cellContainer.getEffectiveCellRendererComponent(index, isEditing); |
|
|
@ -110,9 +111,10 @@ public class CellHintPopupListener<T extends JComponent, I> extends MouseInputAd |
|
|
|
lastIndex = index; |
|
|
|
lastIndex = index; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
return; |
|
|
|
lastIndex = null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
lastIndex = null; |
|
|
|
leave(); |
|
|
|
leave(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|