Interface ComponentMouseListener

    • Method Detail

      • mouseMove

        default boolean mouseMove​(Component component,
                                  int x,
                                  int y)
        Called when the mouse is moved over a component.
        Parameters:
        component - Component that is under the mouse.
        x - X position of the mouse.
        y - Y position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate (default return).
      • mouseOver

        default void mouseOver​(Component component)
        Called when the mouse enters a component.

        Default is to do nothing.

        Parameters:
        component - Component that is now under the mouse pointer.
      • mouseOut

        default void mouseOut​(Component component)
        Called when the mouse exits a component.

        Default is to do nothing.

        Parameters:
        component - Component that has now lost the mouse pointer.