void (MouseEvent e) { if (getCopyIconRect.get().contains(e.getPoint())) { myIsCopyIconActive = true; table.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); } else { myIsCopyIconActive = false; table.setCursor(Cursor.getDefaultCursor()); } }