JavaTM 2 Platform
Std. Ed. v1.3.1

Uses of Class
java.awt.event.MouseEvent

Packages that use MouseEvent
com.apple.mrj.dnd   
java.awt   
java.awt.dnd   
java.awt.event   
javax.swing   
javax.swing.event   
javax.swing.plaf   
javax.swing.plaf.basic   
javax.swing.plaf.metal   
javax.swing.table   
javax.swing.text   
javax.swing.text.html   
 

Uses of MouseEvent in com.apple.mrj.dnd
 

Subclasses of MouseEvent in com.apple.mrj.dnd
 class DragEvent
          Deprecated. As of MacOSX 10.2, replaced by Java2 DnD.
 class DragInitiatorEvent
          Deprecated. As of MacOSX 10.2, replaced by Java2 DnD.
 

Uses of MouseEvent in java.awt
 

Methods in java.awt with parameters of type MouseEvent
protected  void Component.processMouseEvent(MouseEvent e)
          Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
protected  void Component.processMouseMotionEvent(MouseEvent e)
          Processes mouse motion events occurring on this component by dispatching them to any registered MouseMotionListener objects.
 void AWTEventMulticaster.mouseClicked(MouseEvent e)
          Handles the mouseClicked event by invoking the mouseClicked methods on listener-a and listener-b.
 void AWTEventMulticaster.mousePressed(MouseEvent e)
          Handles the mousePressed event by invoking the mousePressed methods on listener-a and listener-b.
 void AWTEventMulticaster.mouseReleased(MouseEvent e)
          Handles the mouseReleased event by invoking the mouseReleased methods on listener-a and listener-b.
 void AWTEventMulticaster.mouseEntered(MouseEvent e)
          Handles the mouseEntered event by invoking the mouseEntered methods on listener-a and listener-b.
 void AWTEventMulticaster.mouseExited(MouseEvent e)
          Handles the mouseExited event by invoking the mouseExited methods on listener-a and listener-b.
 void AWTEventMulticaster.mouseDragged(MouseEvent e)
          Handles the mouseDragged event by invoking the mouseDragged methods on listener-a and listener-b.
 void AWTEventMulticaster.mouseMoved(MouseEvent e)
          Handles the mouseMoved event by invoking the mouseMoved methods on listener-a and listener-b.
 

Uses of MouseEvent in java.awt.dnd
 

Methods in java.awt.dnd with parameters of type MouseEvent
 void MouseDragGestureRecognizer.mouseClicked(MouseEvent e)
          Invoked when the mouse has been clicked on a component.
 void MouseDragGestureRecognizer.mousePressed(MouseEvent e)
          Invoked when a mouse button has been pressed on a Component.
 void MouseDragGestureRecognizer.mouseReleased(MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void MouseDragGestureRecognizer.mouseEntered(MouseEvent e)
          Invoked when the mouse enters a component.
 void MouseDragGestureRecognizer.mouseExited(MouseEvent e)
          Invoked when the mouse exits a component.
 void MouseDragGestureRecognizer.mouseDragged(MouseEvent e)
          Invoked when a mouse button is pressed on a component.
 void MouseDragGestureRecognizer.mouseMoved(MouseEvent e)
          Invoked when the mouse button has been moved on a component (with no buttons no down).
 

Uses of MouseEvent in java.awt.event
 

Methods in java.awt.event with parameters of type MouseEvent
 void MouseAdapter.mouseClicked(MouseEvent e)
          Invoked when the mouse has been clicked on a component.
 void MouseAdapter.mousePressed(MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void MouseAdapter.mouseReleased(MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void MouseAdapter.mouseEntered(MouseEvent e)
          Invoked when the mouse enters a component.
 void MouseAdapter.mouseExited(MouseEvent e)
          Invoked when the mouse exits a component.
 void MouseMotionListener.mouseDragged(MouseEvent e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void MouseMotionListener.mouseMoved(MouseEvent e)
          Invoked when the mouse button has been moved on a component (with no buttons no down).
 void MouseMotionAdapter.mouseDragged(MouseEvent e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void MouseMotionAdapter.mouseMoved(MouseEvent e)
          Invoked when the mouse button has been moved on a component (with no buttons no down).
 void MouseListener.mouseClicked(MouseEvent e)
          Invoked when the mouse has been clicked on a component.
 void MouseListener.mousePressed(MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void MouseListener.mouseReleased(MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void MouseListener.mouseEntered(MouseEvent e)
          Invoked when the mouse enters a component.
 void MouseListener.mouseExited(MouseEvent e)
          Invoked when the mouse exits a component.
 

Uses of MouseEvent in javax.swing
 

Methods in javax.swing that return MouseEvent
static MouseEvent SwingUtilities.convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)
          Returns a MouseEvent similar to sourceEvent except that its x and y members have been converted to destination's coordinate system.
 

Methods in javax.swing with parameters of type MouseEvent
 String JComponent.getToolTipText(MouseEvent event)
          Returns the string to be used as the tooltip for event.
 Point JComponent.getToolTipLocation(MouseEvent event)
          Returns the tooltip location in this component's coordinate system.
protected  void JComponent.processMouseMotionEvent(MouseEvent e)
           
 void ToolTipManager.mouseEntered(MouseEvent event)
          Called when the mouse enters the region of a component.
 void ToolTipManager.mouseExited(MouseEvent event)
          Called when the mouse exits the region of a component.
 void ToolTipManager.mousePressed(MouseEvent event)
          Called when the mouse is pressed.
 void ToolTipManager.mouseDragged(MouseEvent event)
          Called when the mouse is pressed and dragged.
 void ToolTipManager.mouseMoved(MouseEvent event)
          Called when the mouse is moved.
 String JTabbedPane.getToolTipText(MouseEvent event)
          Returns the tooltip text for the component determined by the mouse event location.
 void JMenuItem.processMouseEvent(MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
          Process a mouse event forwarded from the MenuSelectionManager.
 void MenuSelectionManager.processMouseEvent(MouseEvent event)
          When a MenuElement receives an event from a MouseListener, it should never process the event directly.
 void JPopupMenu.processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
          This method is required to conform to the MenuElement interface, but it not implemented.
 boolean JPopupMenu.isPopupTrigger(MouseEvent e)
          Returns true if the MouseEvent is considered a popup trigger by the JPopupMenu's currently installed UI.
static MouseEvent SwingUtilities.convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)
          Returns a MouseEvent similar to sourceEvent except that its x and y members have been converted to destination's coordinate system.
static boolean SwingUtilities.isLeftMouseButton(MouseEvent anEvent)
          Returns true if the mouse event specifies the left mouse button.
static boolean SwingUtilities.isMiddleMouseButton(MouseEvent anEvent)
          Returns true if the mouse event specifies the middle mouse button.
static boolean SwingUtilities.isRightMouseButton(MouseEvent anEvent)
          Returns true if the mouse event specifies the right mouse button.
 String JTree.getToolTipText(MouseEvent event)
          Overrides JComponent's getToolTipText method in order to allow renderer's tips to be used if it has text set.
 String JTable.getToolTipText(MouseEvent event)
          Overrides JComponent's getToolTipText method in order to allow the renderer's tips to be used if it has text set.
 void JMenuBar.processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
          Implemented to be a MenuElement -- does nothing.
 void MenuElement.processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
          Process a mouse event.
 

Uses of MouseEvent in javax.swing.event
 

Subclasses of MouseEvent in javax.swing.event
 class MenuDragMouseEvent
          MenuDragMouseEvent is used to notify interested parties that the menu element has received a MouseEvent forwarded to it under drag conditions.
 

Methods in javax.swing.event with parameters of type MouseEvent
 void MouseInputAdapter.mouseClicked(MouseEvent e)
           
 void MouseInputAdapter.mousePressed(MouseEvent e)
           
 void MouseInputAdapter.mouseReleased(MouseEvent e)
           
 void MouseInputAdapter.mouseEntered(MouseEvent e)
           
 void MouseInputAdapter.mouseExited(MouseEvent e)
           
 void MouseInputAdapter.mouseDragged(MouseEvent e)
           
 void MouseInputAdapter.mouseMoved(MouseEvent e)
           
 

Uses of MouseEvent in javax.swing.plaf
 

Methods in javax.swing.plaf with parameters of type MouseEvent
 boolean PopupMenuUI.isPopupTrigger(MouseEvent e)
           
 

Uses of MouseEvent in javax.swing.plaf.basic
 

Methods in javax.swing.plaf.basic that return MouseEvent
protected  MouseEvent BasicComboPopup.convertMouseEvent(MouseEvent e)
           
 

Methods in javax.swing.plaf.basic with parameters of type MouseEvent
 void BasicRadioButtonMenuItemUI.processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
           
protected  void BasicComboPopup.delegateFocus(MouseEvent e)
          This is is a utility method that helps event handlers figure out where to send the focus when the popup is brought up.
protected  MouseEvent BasicComboPopup.convertMouseEvent(MouseEvent e)
           
protected  void BasicComboPopup.updateListBoxSelectionForEvent(MouseEvent anEvent, boolean shouldScroll)
          A utility method used by the event listeners.
 void BasicComboPopup.InvocationMouseHandler.mousePressed(MouseEvent e)
           
 void BasicComboPopup.InvocationMouseHandler.mouseReleased(MouseEvent e)
           
 void BasicComboPopup.InvocationMouseMotionHandler.mouseDragged(MouseEvent e)
           
 void BasicComboPopup.ListMouseHandler.mousePressed(MouseEvent e)
           
 void BasicComboPopup.ListMouseHandler.mouseReleased(MouseEvent anEvent)
           
 void BasicComboPopup.ListMouseMotionHandler.mouseMoved(MouseEvent anEvent)
           
 void BasicTabbedPaneUI.MouseHandler.mousePressed(MouseEvent e)
           
 void BasicCheckBoxMenuItemUI.processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
           
 boolean BasicPopupMenuUI.isPopupTrigger(MouseEvent e)
           
 void BasicTableUI.MouseInputHandler.mouseClicked(MouseEvent e)
           
 void BasicTableUI.MouseInputHandler.mousePressed(MouseEvent e)
           
 void BasicTableUI.MouseInputHandler.mouseReleased(MouseEvent e)
           
 void BasicTableUI.MouseInputHandler.mouseEntered(MouseEvent e)
           
 void BasicTableUI.MouseInputHandler.mouseExited(MouseEvent e)
           
 void BasicTableUI.MouseInputHandler.mouseMoved(MouseEvent e)
           
 void BasicTableUI.MouseInputHandler.mouseDragged(MouseEvent e)
           
 void BasicScrollBarUI.TrackListener.mouseReleased(MouseEvent e)
           
 void BasicScrollBarUI.TrackListener.mousePressed(MouseEvent e)
          If the mouse is pressed above the "thumb" component then reduce the scrollbars value by one page ("page up"), otherwise increase it by one page.
 void BasicScrollBarUI.TrackListener.mouseDragged(MouseEvent e)
          Set the models value to the position of the top/left of the thumb relative to the origin of the track.
 void BasicScrollBarUI.TrackListener.mouseMoved(MouseEvent e)
           
 void BasicScrollBarUI.ArrowButtonListener.mousePressed(MouseEvent e)
           
 void BasicScrollBarUI.ArrowButtonListener.mouseReleased(MouseEvent e)
           
 void BasicToolBarUI.DockingListener.mouseClicked(MouseEvent e)
           
 void BasicToolBarUI.DockingListener.mousePressed(MouseEvent e)
           
 void BasicToolBarUI.DockingListener.mouseReleased(MouseEvent e)
           
 void BasicToolBarUI.DockingListener.mouseEntered(MouseEvent e)
           
 void BasicToolBarUI.DockingListener.mouseExited(MouseEvent e)
           
 void BasicToolBarUI.DockingListener.mouseDragged(MouseEvent e)
           
 void BasicToolBarUI.DockingListener.mouseMoved(MouseEvent e)
           
 void BasicButtonListener.mouseMoved(MouseEvent e)
           
 void BasicButtonListener.mouseDragged(MouseEvent e)
           
 void BasicButtonListener.mouseClicked(MouseEvent e)
           
 void BasicButtonListener.mousePressed(MouseEvent e)
           
 void BasicButtonListener.mouseReleased(MouseEvent e)
           
 void BasicButtonListener.mouseEntered(MouseEvent e)
           
 void BasicButtonListener.mouseExited(MouseEvent e)
           
 void BasicFileChooserUI.DoubleClickListener.mouseClicked(MouseEvent e)
           
 void BasicInternalFrameUI.BorderListener.mouseClicked(MouseEvent e)
           
 void BasicInternalFrameUI.BorderListener.mouseReleased(MouseEvent e)
           
 void BasicInternalFrameUI.BorderListener.mousePressed(MouseEvent e)
           
 void BasicInternalFrameUI.BorderListener.mouseDragged(MouseEvent e)
           
 void BasicInternalFrameUI.BorderListener.mouseMoved(MouseEvent e)
           
 void BasicInternalFrameUI.BorderListener.mouseExited(MouseEvent e)
           
 void BasicInternalFrameUI.GlassPaneDispatcher.mousePressed(MouseEvent e)
          When inactive, mouse events are forwarded as appropriate either to the UI to activate the frame or to the underlying child component.
 void BasicInternalFrameUI.GlassPaneDispatcher.mouseEntered(MouseEvent e)
          Forward the mouseEntered event to the underlying child container.
 void BasicInternalFrameUI.GlassPaneDispatcher.mouseMoved(MouseEvent e)
          Forward the mouseMoved event to the underlying child container.
 void BasicInternalFrameUI.GlassPaneDispatcher.mouseExited(MouseEvent e)
          Forward the mouseExited event to the underlying child container.
 void BasicInternalFrameUI.GlassPaneDispatcher.mouseClicked(MouseEvent e)
          Ignore mouseClicked events.
 void BasicInternalFrameUI.GlassPaneDispatcher.mouseReleased(MouseEvent e)
          Ignore mouseReleased events.
 void BasicInternalFrameUI.GlassPaneDispatcher.mouseDragged(MouseEvent e)
          Ignore mouseDragged events.
 void BasicListUI.MouseInputHandler.mouseClicked(MouseEvent e)
           
 void BasicListUI.MouseInputHandler.mouseEntered(MouseEvent e)
           
 void BasicListUI.MouseInputHandler.mouseExited(MouseEvent e)
           
 void BasicListUI.MouseInputHandler.mousePressed(MouseEvent e)
           
 void BasicListUI.MouseInputHandler.mouseDragged(MouseEvent e)
           
 void BasicListUI.MouseInputHandler.mouseMoved(MouseEvent e)
           
 void BasicListUI.MouseInputHandler.mouseReleased(MouseEvent e)
           
 void BasicTableHeaderUI.MouseInputHandler.mouseClicked(MouseEvent e)
           
 void BasicTableHeaderUI.MouseInputHandler.mousePressed(MouseEvent e)
           
 void BasicTableHeaderUI.MouseInputHandler.mouseMoved(MouseEvent e)
           
 void BasicTableHeaderUI.MouseInputHandler.mouseDragged(MouseEvent e)
           
 void BasicTableHeaderUI.MouseInputHandler.mouseReleased(MouseEvent e)
           
 void BasicTableHeaderUI.MouseInputHandler.mouseEntered(MouseEvent e)
           
 void BasicTableHeaderUI.MouseInputHandler.mouseExited(MouseEvent e)
           
protected  boolean BasicTreeUI.startEditing(TreePath path, MouseEvent event)
          Will start editing for node if there is a cellEditor and shouldSelectCell returns true.
protected  boolean BasicTreeUI.isToggleSelectionEvent(MouseEvent event)
          Returning true signifies a mouse event on the node should toggle the selection of only the row under mouse.
protected  boolean BasicTreeUI.isMultiSelectEvent(MouseEvent event)
          Returning true signifies a mouse event on the node should select from the anchor point.
protected  boolean BasicTreeUI.isToggleEvent(MouseEvent event)
          Returning true indicates the row under the mouse should be toggled based on the event.
protected  void BasicTreeUI.selectPathForEvent(TreePath path, MouseEvent event)
          Messaged to update the selection based on a MouseEvent over a particular row.
 void BasicTreeUI.MouseHandler.mousePressed(MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void BasicTreeUI.MouseInputHandler.mouseClicked(MouseEvent e)
           
 void BasicTreeUI.MouseInputHandler.mousePressed(MouseEvent e)
           
 void BasicTreeUI.MouseInputHandler.mouseReleased(MouseEvent e)
           
 void BasicTreeUI.MouseInputHandler.mouseEntered(MouseEvent e)
           
 void BasicTreeUI.MouseInputHandler.mouseExited(MouseEvent e)
           
 void BasicTreeUI.MouseInputHandler.mouseDragged(MouseEvent e)
           
 void BasicTreeUI.MouseInputHandler.mouseMoved(MouseEvent e)
           
 void BasicSplitPaneDivider.MouseHandler.mousePressed(MouseEvent e)
          Starts the dragging session by creating the appropriate instance of DragController.
 void BasicSplitPaneDivider.MouseHandler.mouseReleased(MouseEvent e)
          If dragger is not null it is messaged with completeDrag.
 void BasicSplitPaneDivider.MouseHandler.mouseDragged(MouseEvent e)
          If dragger is not null it is messaged with continueDrag.
 void BasicSplitPaneDivider.MouseHandler.mouseMoved(MouseEvent e)
          Resets the cursor based on the orientation.
protected  int BasicSplitPaneDivider.DragController.positionForMouseEvent(MouseEvent e)
          Returns the new position to put the divider at based on the passed in MouseEvent.
protected  void BasicSplitPaneDivider.DragController.continueDrag(MouseEvent e)
          Messages dragDividerTo with the new location for the mouse event.
protected  void BasicSplitPaneDivider.DragController.completeDrag(MouseEvent e)
          Messages finishDraggingTo with the new location for the mouse event.
protected  int BasicSplitPaneDivider.VerticalDragController.positionForMouseEvent(MouseEvent e)
          Returns the new position to put the divider at based on the passed in MouseEvent.
 void BasicDesktopIconUI.MouseInputHandler.mouseReleased(MouseEvent e)
           
 void BasicDesktopIconUI.MouseInputHandler.mousePressed(MouseEvent e)
           
 void BasicDesktopIconUI.MouseInputHandler.mouseMoved(MouseEvent e)
           
 void BasicDesktopIconUI.MouseInputHandler.mouseDragged(MouseEvent e)
           
 void BasicSliderUI.TrackListener.mouseReleased(MouseEvent e)
           
 void BasicSliderUI.TrackListener.mousePressed(MouseEvent e)
          If the mouse is pressed above the "thumb" component then reduce the scrollbars value by one page ("page up"), otherwise increase it by one page.
 void BasicSliderUI.TrackListener.mouseDragged(MouseEvent e)
          Set the models value to the position of the top/left of the thumb relative to the origin of the track.
 void BasicSliderUI.TrackListener.mouseMoved(MouseEvent e)
           
 void BasicMenuItemUI.MouseInputHandler.mouseClicked(MouseEvent e)
           
 void BasicMenuItemUI.MouseInputHandler.mousePressed(MouseEvent e)
           
 void BasicMenuItemUI.MouseInputHandler.mouseReleased(MouseEvent e)
           
 void BasicMenuItemUI.MouseInputHandler.mouseEntered(MouseEvent e)
           
 void BasicMenuItemUI.MouseInputHandler.mouseExited(MouseEvent e)
           
 void BasicMenuItemUI.MouseInputHandler.mouseDragged(MouseEvent e)
           
 void BasicMenuItemUI.MouseInputHandler.mouseMoved(MouseEvent e)
           
 

Constructors in javax.swing.plaf.basic with parameters of type MouseEvent
BasicTreeUI.MouseInputHandler(Component source, Component destination, MouseEvent event)
           
BasicSplitPaneDivider.DragController(MouseEvent e)
           
BasicSplitPaneDivider.VerticalDragController(MouseEvent e)
           
 

Uses of MouseEvent in javax.swing.plaf.metal
 

Methods in javax.swing.plaf.metal with parameters of type MouseEvent
 void MetalFileChooserUI.SingleClickListener.mouseClicked(MouseEvent e)
           
 void MetalComboBoxUI.MetalComboPopup.delegateFocus(MouseEvent e)
           
 void MetalToolBarUI.MetalDockingListener.mousePressed(MouseEvent e)
           
 void MetalToolBarUI.MetalDockingListener.mouseDragged(MouseEvent e)
           
 

Uses of MouseEvent in javax.swing.table
 

Methods in javax.swing.table with parameters of type MouseEvent
 String JTableHeader.getToolTipText(MouseEvent event)
          Allows the renderer's tips to be used if there is text set.
 

Uses of MouseEvent in javax.swing.text
 

Methods in javax.swing.text with parameters of type MouseEvent
protected  void DefaultCaret.positionCaret(MouseEvent e)
          Tries to set the position of the caret from the coordinates of a mouse event, using viewToModel().
protected  void DefaultCaret.moveCaret(MouseEvent e)
          Tries to move the position of the caret from the coordinates of a mouse event, using viewToModel().
 void DefaultCaret.mouseClicked(MouseEvent e)
          Called when the mouse is clicked.
 void DefaultCaret.mousePressed(MouseEvent e)
          If button 1 is pressed, this is implemented to request focus on the associated text component, and to set the caret position.
 void DefaultCaret.mouseReleased(MouseEvent e)
          Called when the mouse is released.
 void DefaultCaret.mouseEntered(MouseEvent e)
          Called when the mouse enters a region.
 void DefaultCaret.mouseExited(MouseEvent e)
          Called when the mouse exits a region.
 void DefaultCaret.mouseDragged(MouseEvent e)
          Moves the caret position according to the mouse pointer's current location.
 void DefaultCaret.mouseMoved(MouseEvent e)
          Called when the mouse is moved.
 

Uses of MouseEvent in javax.swing.text.html
 

Methods in javax.swing.text.html with parameters of type MouseEvent
 void HTMLEditorKit.LinkController.mouseClicked(MouseEvent e)
          Called for a mouse click event.
 void HTMLEditorKit.LinkController.mouseDragged(MouseEvent e)
           
 void HTMLEditorKit.LinkController.mouseMoved(MouseEvent e)
           
 void FormView.MouseEventListener.mouseReleased(MouseEvent evt)
           
 


JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.