void (MouseEvent e, Component component) { e.getComponent().setCursor(null); MouseEvent event = createEvent(e, component); MouseListener[] listeners = component.getMouseListeners(); for (MouseListener listener : listeners) { listener.mouseExited(event); } }