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.plaf.synth |
Synth is a skinnable look and feel in which all painting is
delegated.
|
javax.swing.text |
Provides classes and interfaces that deal with editable
and noneditable text components.
|
javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes
for creating HTML text editors. |
Modifier and Type | Class and Description |
---|---|
class |
AWTEventMulticaster
AWTEventMulticaster implements efficient and thread-safe multi-cast
event dispatching for the AWT events defined in the java.awt.event
package. |
Modifier and Type | Method and Description |
---|---|
static MouseListener |
AWTEventMulticaster.add(MouseListener a,
MouseListener b)
Adds mouse-listener-a with mouse-listener-b and
returns the resulting multicast listener.
|
MouseListener[] |
Component.getMouseListeners()
Returns an array of all the mouse listeners
registered on this component.
|
MouseListener[] |
TrayIcon.getMouseListeners()
Returns an array of all the mouse listeners
registered on this
TrayIcon . |
static MouseListener |
AWTEventMulticaster.remove(MouseListener l,
MouseListener oldl)
Removes the old mouse-listener from mouse-listener-l and
returns the resulting multicast listener.
|
Modifier and Type | Method and Description |
---|---|
static MouseListener |
AWTEventMulticaster.add(MouseListener a,
MouseListener b)
Adds mouse-listener-a with mouse-listener-b and
returns the resulting multicast listener.
|
void |
Component.addMouseListener(MouseListener l)
Adds the specified mouse listener to receive mouse events from
this component.
|
void |
TrayIcon.addMouseListener(MouseListener listener)
Adds the specified mouse listener to receive mouse events from
this
TrayIcon . |
static MouseListener |
AWTEventMulticaster.remove(MouseListener l,
MouseListener oldl)
Removes the old mouse-listener from mouse-listener-l and
returns the resulting multicast listener.
|
void |
Component.removeMouseListener(MouseListener l)
Removes the specified mouse listener so that it no longer
receives mouse events from this component.
|
void |
TrayIcon.removeMouseListener(MouseListener listener)
Removes the specified mouse listener.
|
Modifier and Type | Class and Description |
---|---|
class |
MouseDragGestureRecognizer
This abstract subclass of
DragGestureRecognizer
defines a DragGestureRecognizer
for mouse-based gestures. |
Modifier and Type | Class and Description |
---|---|
class |
MouseAdapter
An abstract adapter class for receiving mouse events.
|
Modifier and Type | Class and Description |
---|---|
class |
ToolTipManager
Manages all the
ToolTips in the system. |
Modifier and Type | Interface and Description |
---|---|
interface |
MouseInputListener
A listener implementing all the methods in both the
MouseListener and
MouseMotionListener interfaces. |
Modifier and Type | Class and Description |
---|---|
class |
MouseInputAdapter
An empty implementation of the
MouseInputListener interface, 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 |
BasicButtonListener
Button Listener
|
protected class |
BasicComboPopup.InvocationMouseHandler
A 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.ListMouseHandler
This listener hides the popup when the mouse is released in the list.
|
class |
BasicDesktopIconUI.MouseInputHandler
Listens for mouse movements and acts on them.
|
protected class |
BasicFileChooserUI.DoubleClickListener |
protected class |
BasicInternalFrameUI.BorderListener
Listens for border adjustments.
|
protected class |
BasicInternalFrameUI.GlassPaneDispatcher |
class |
BasicListUI.MouseInputHandler
Mouse input, and focus handling for JList.
|
protected class |
BasicMenuItemUI.MouseInputHandler |
protected class |
BasicMenuUI.MouseInputHandler
Instantiated and used by a menu item to handle the current menu selection
from mouse events.
|
protected class |
BasicScrollBarUI.ArrowButtonListener
Listener for cursor keys.
|
protected class |
BasicScrollBarUI.TrackListener
Track mouse drags.
|
class |
BasicSliderUI.TrackListener
Track mouse movements.
|
protected class |
BasicSplitPaneDivider.MouseHandler
MouseHandler is responsible for converting mouse events
(released, dragged...) into the appropriate DragController
methods.
|
class |
BasicTabbedPaneUI.MouseHandler
This class should be treated as a "protected" inner class.
|
class |
BasicTableHeaderUI.MouseInputHandler
This class should be treated as a "protected" inner class.
|
class |
BasicTableUI.MouseInputHandler
This class should be treated as a "protected" inner class.
|
static class |
BasicTextUI.BasicCaret |
class |
BasicToolBarUI.DockingListener
This class should be treated as a "protected" inner class.
|
class |
BasicTreeUI.MouseHandler
TreeMouseListener is responsible for updating the selection
based on mouse events.
|
class |
BasicTreeUI.MouseInputHandler
MouseInputHandler 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 MouseListener |
BasicComboPopup.listMouseListener
This protected field is implementation specific.
|
protected MouseListener |
BasicComboPopup.mouseListener
This protected field is implementation specific.
|
protected MouseListener |
BasicTabbedPaneUI.mouseListener |
protected MouseListener |
BasicComboBoxUI.popupMouseListener |
Modifier and Type | Method and Description |
---|---|
protected MouseListener |
BasicFileChooserUI.createDoubleClickListener(JFileChooser fc,
JList list) |
protected MouseListener |
BasicComboPopup.createListMouseListener()
Creates a mouse listener that watches for mouse events in
the popup's list.
|
protected MouseListener |
BasicComboPopup.createMouseListener()
Creates a listener
that will watch for mouse-press and release events on the combo box.
|
protected MouseListener |
BasicTabbedPaneUI.createMouseListener() |
protected MouseListener |
BasicTreeUI.createMouseListener()
Creates the listener responsible for updating the selection based on
mouse events.
|
MouseListener |
BasicComboPopup.getMouseListener()
Implementation of ComboPopup.getMouseListener().
|
MouseListener |
ComboPopup.getMouseListener()
Returns a mouse 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 | Method and Description |
---|---|
protected MouseListener |
SynthTabbedPaneUI.createMouseListener()
Overridden to keep track of whether the selected tab is also pressed.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultCaret
A default implementation of Caret.
|
Modifier and Type | Class and Description |
---|---|
protected class |
FormView.MouseEventListener
MouseEventListener class to handle form submissions when
an input with type equal to image is clicked on.
|
static class |
HTMLEditorKit.LinkController
Class 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, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.