| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.awt.dnd | Drag and Drop is a direct manipulation gesture found in many Graphical
User Interface systems that provides a mechanism to transfer
information between two entities logically associated with presentation
elements in the GUI. | 
| java.awt.event | Provides interfaces and classes for dealing with different
types of events fired by AWT components. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.swing.event | Provides for events fired by Swing components. | 
| javax.swing.plaf.basic | Provides user interface objects built according to the
Basic look and feel. | 
| javax.swing.plaf.metal | Provides user interface objects built according to
the Java look and feel (once codenamed Metal),
which is the default look and feel. | 
| javax.swing.text | Provides classes and interfaces that deal with editable
and noneditable text components. | 
| javax.swing.text.html | Provides the class  HTMLEditorKitand supporting classes
for creating HTML text editors. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AWTEventMulticasterAWTEventMulticasterimplements efficient and thread-safe multi-cast
 event dispatching for the AWT events defined in thejava.awt.eventpackage. | 
| Modifier and Type | Method and Description | 
|---|---|
| static MouseMotionListener | AWTEventMulticaster. add(MouseMotionListener a,
   MouseMotionListener b)Adds mouse-motion-listener-a with mouse-motion-listener-b and
 returns the resulting multicast listener. | 
| MouseMotionListener[] | Component. getMouseMotionListeners()Returns an array of all the mouse motion listeners
 registered on this component. | 
| MouseMotionListener[] | TrayIcon. getMouseMotionListeners()Returns an array of all the mouse-motion listeners
 registered on this  TrayIcon. | 
| static MouseMotionListener | AWTEventMulticaster. remove(MouseMotionListener l,
      MouseMotionListener oldl)Removes the old mouse-motion-listener from mouse-motion-listener-l
 and returns the resulting multicast listener. | 
| Modifier and Type | Method and Description | 
|---|---|
| static MouseMotionListener | AWTEventMulticaster. add(MouseMotionListener a,
   MouseMotionListener b)Adds mouse-motion-listener-a with mouse-motion-listener-b and
 returns the resulting multicast listener. | 
| void | Component. addMouseMotionListener(MouseMotionListener l)Adds the specified mouse motion listener to receive mouse motion
 events from this component. | 
| void | TrayIcon. addMouseMotionListener(MouseMotionListener listener)Adds the specified mouse listener to receive mouse-motion
 events from this  TrayIcon. | 
| static MouseMotionListener | AWTEventMulticaster. remove(MouseMotionListener l,
      MouseMotionListener oldl)Removes the old mouse-motion-listener from mouse-motion-listener-l
 and returns the resulting multicast listener. | 
| void | Component. removeMouseMotionListener(MouseMotionListener l)Removes the specified mouse motion listener so that it no longer
 receives mouse motion events from this component. | 
| void | TrayIcon. removeMouseMotionListener(MouseMotionListener listener)Removes the specified mouse-motion listener. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MouseDragGestureRecognizerThis abstract subclass of  DragGestureRecognizerdefines aDragGestureRecognizerfor mouse-based gestures. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MouseAdapterAn abstract adapter class for receiving mouse events. | 
| class  | MouseMotionAdapterAn abstract adapter class for receiving mouse motion events. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ToolTipManagerManages all the  ToolTipsin the system. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | MouseInputListenerA listener implementing all the methods in both the  MouseListenerandMouseMotionListenerinterfaces. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MouseInputAdapterAn empty implementation of the  MouseInputListenerinterface, provided
 as a convenience to simplify the task of creating listeners, by extending
 and implementing only the methods of interest. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BasicButtonListenerButton Listener | 
| protected class  | BasicComboPopup.InvocationMouseHandlerA listener to be registered upon the combo box
 (not its popup menu)
 to handle mouse events
 that affect the state of the popup menu. | 
| protected class  | BasicComboPopup.InvocationMouseMotionHandlerThis listener watches for dragging and updates the current selection in the
 list if it is dragging over the list. | 
| protected class  | BasicComboPopup.ListMouseHandlerThis listener hides the popup when the mouse is released in the list. | 
| protected class  | BasicComboPopup.ListMouseMotionHandlerThis listener changes the selected item as you move the mouse over the list. | 
| class  | BasicDesktopIconUI.MouseInputHandlerListens for mouse movements and acts on them. | 
| protected class  | BasicFileChooserUI.DoubleClickListener | 
| protected class  | BasicInternalFrameUI.BorderListenerListens for border adjustments. | 
| protected class  | BasicInternalFrameUI.GlassPaneDispatcher | 
| class  | BasicListUI.MouseInputHandlerMouse input, and focus handling for JList. | 
| protected class  | BasicMenuItemUI.MouseInputHandler | 
| protected class  | BasicMenuUI.MouseInputHandlerInstantiated and used by a menu item to handle the current menu selection
 from mouse events. | 
| protected class  | BasicScrollBarUI.ArrowButtonListenerListener for cursor keys. | 
| protected class  | BasicScrollBarUI.TrackListenerTrack mouse drags. | 
| class  | BasicSliderUI.TrackListenerTrack mouse movements. | 
| protected class  | BasicSplitPaneDivider.MouseHandlerMouseHandler is responsible for converting mouse events
 (released, dragged...) into the appropriate DragController
 methods. | 
| class  | BasicTabbedPaneUI.MouseHandlerThis class should be treated as a "protected" inner class. | 
| class  | BasicTableHeaderUI.MouseInputHandlerThis class should be treated as a "protected" inner class. | 
| class  | BasicTableUI.MouseInputHandlerThis class should be treated as a "protected" inner class. | 
| static class  | BasicTextUI.BasicCaret | 
| class  | BasicToolBarUI.DockingListenerThis class should be treated as a "protected" inner class. | 
| class  | BasicTreeUI.MouseHandlerTreeMouseListener is responsible for updating the selection
 based on mouse events. | 
| class  | BasicTreeUI.MouseInputHandlerMouseInputHandler handles passing all mouse events,
 including mouse motion events, until the mouse is released to
 the destination it is constructed with. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected MouseMotionListener | BasicComboPopup. listMouseMotionListenerThis protected field is implementation specific. | 
| protected MouseMotionListener | BasicComboPopup. mouseMotionListenerThis protected field is implementation specific. | 
| protected MouseMotionListener | BasicComboBoxUI. popupMouseMotionListener | 
| Modifier and Type | Method and Description | 
|---|---|
| protected MouseMotionListener | BasicComboPopup. createListMouseMotionListener()Creates a mouse motion listener that watches for mouse motion
 events in the popup's list. | 
| protected MouseMotionListener | BasicComboPopup. createMouseMotionListener()Creates the mouse motion listener which will be added to the combo
 box. | 
| MouseMotionListener | BasicComboPopup. getMouseMotionListener()Implementation of ComboPopup.getMouseMotionListener(). | 
| MouseMotionListener | ComboPopup. getMouseMotionListener()Returns a mouse motion listener that will be added to the combo box or null. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | MetalFileChooserUI.SingleClickListener | 
| protected class  | MetalToolBarUI.MetalDockingListener | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultCaretA default implementation of Caret. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | FormView.MouseEventListenerMouseEventListener class to handle form submissions when
 an input with type equal to image is clicked on. | 
| static class  | HTMLEditorKit.LinkControllerClass to watch the associated component and fire
 hyperlink events on it when appropriate. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.