Uses of Class
java.awt.event.MouseEvent
-
Packages that use MouseEvent 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 Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.javax.swing.plaf.basic Provides user interface objects built according to the Basic look and feel.javax.swing.plaf.multi Provides user interface objects that combine two or more look and feels.javax.swing.table Provides classes and interfaces for dealing withjavax.swing.JTable.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.javax.swing.text.html Provides the classHTMLEditorKitand supporting classes for creating HTML text editors. -
-
Uses of MouseEvent in java.awt
Methods in java.awt with parameters of type MouseEvent Modifier and Type Method Description voidAWTEventMulticaster. mouseClicked(MouseEvent e)Handles the mouseClicked event by invoking the mouseClicked methods on listener-a and listener-b.voidAWTEventMulticaster. mouseDragged(MouseEvent e)Handles the mouseDragged event by invoking the mouseDragged methods on listener-a and listener-b.voidAWTEventMulticaster. mouseEntered(MouseEvent e)Handles the mouseEntered event by invoking the mouseEntered methods on listener-a and listener-b.voidAWTEventMulticaster. mouseExited(MouseEvent e)Handles the mouseExited event by invoking the mouseExited methods on listener-a and listener-b.voidAWTEventMulticaster. mouseMoved(MouseEvent e)Handles the mouseMoved event by invoking the mouseMoved methods on listener-a and listener-b.voidAWTEventMulticaster. mousePressed(MouseEvent e)Handles the mousePressed event by invoking the mousePressed methods on listener-a and listener-b.voidAWTEventMulticaster. mouseReleased(MouseEvent e)Handles the mouseReleased event by invoking the mouseReleased methods on listener-a and listener-b.protected voidComponent. processMouseEvent(MouseEvent e)Processes mouse events occurring on this component by dispatching them to any registeredMouseListenerobjects.protected voidComponent. processMouseMotionEvent(MouseEvent e)Processes mouse motion events occurring on this component by dispatching them to any registeredMouseMotionListenerobjects. -
Uses of MouseEvent in java.awt.dnd
Methods in java.awt.dnd with parameters of type MouseEvent Modifier and Type Method Description voidMouseDragGestureRecognizer. mouseClicked(MouseEvent e)Invoked when the mouse has been clicked on a component.voidMouseDragGestureRecognizer. mouseDragged(MouseEvent e)Invoked when a mouse button is pressed on a component.voidMouseDragGestureRecognizer. mouseEntered(MouseEvent e)Invoked when the mouse enters a component.voidMouseDragGestureRecognizer. mouseExited(MouseEvent e)Invoked when the mouse exits a component.voidMouseDragGestureRecognizer. mouseMoved(MouseEvent e)Invoked when the mouse button has been moved on a component (with no buttons no down).voidMouseDragGestureRecognizer. mousePressed(MouseEvent e)Invoked when a mouse button has been pressed on aComponent.voidMouseDragGestureRecognizer. mouseReleased(MouseEvent e)Invoked when a mouse button has been released on a component. -
Uses of MouseEvent in java.awt.event
Subclasses of MouseEvent in java.awt.event Modifier and Type Class Description classMouseWheelEventAn event which indicates that the mouse wheel was rotated in a component.Methods in java.awt.event with parameters of type MouseEvent Modifier and Type Method Description voidMouseListener. mouseClicked(MouseEvent e)Invoked when the mouse button has been clicked (pressed and released) on a component.voidMouseAdapter. mouseDragged(MouseEvent e)Invoked when a mouse button is pressed on a component and then dragged.voidMouseMotionAdapter. mouseDragged(MouseEvent e)Invoked when a mouse button is pressed on a component and then dragged.voidMouseMotionListener. mouseDragged(MouseEvent e)Invoked when a mouse button is pressed on a component and then dragged.voidMouseListener. mouseEntered(MouseEvent e)Invoked when the mouse enters a component.voidMouseListener. mouseExited(MouseEvent e)Invoked when the mouse exits a component.voidMouseAdapter. mouseMoved(MouseEvent e)Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.voidMouseMotionAdapter. mouseMoved(MouseEvent e)Invoked when the mouse button has been moved on a component (with no buttons no down).voidMouseMotionListener. mouseMoved(MouseEvent e)Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.voidMouseListener. mousePressed(MouseEvent e)Invoked when a mouse button has been pressed on a component.voidMouseListener. mouseReleased(MouseEvent e)Invoked when a mouse button has been released on a component. -
Uses of MouseEvent in javax.swing
Methods in javax.swing that return MouseEvent Modifier and Type Method Description static MouseEventSwingUtilities. convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)Returns a MouseEvent similar tosourceEventexcept that its x and y members have been converted todestination's coordinate system.Methods in javax.swing with parameters of type MouseEvent Modifier and Type Method Description static MouseEventSwingUtilities. convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)Returns a MouseEvent similar tosourceEventexcept that its x and y members have been converted todestination's coordinate system.PointJComponent. getPopupLocation(MouseEvent event)Returns the preferred location to display the popup menu in this component's coordinate system.PointJComponent. getToolTipLocation(MouseEvent event)Returns the tooltip location in this component's coordinate system.StringJComponent. getToolTipText(MouseEvent event)Returns the string to be used as the tooltip for event.StringJList. getToolTipText(MouseEvent event)Returns the tooltip text to be used for the given event.StringJTabbedPane. getToolTipText(MouseEvent event)Returns the tooltip text for the component determined by the mouse event location.StringJTable. getToolTipText(MouseEvent event)OverridesJComponent'sgetToolTipTextmethod in order to allow the renderer's tips to be used if it has text set.StringJTree. getToolTipText(MouseEvent event)OverridesJComponent'sgetToolTipTextmethod in order to allow renderer's tips to be used if it has text set.static booleanSwingUtilities. isLeftMouseButton(MouseEvent anEvent)Returns true if the mouse event specifies the left mouse button.static booleanSwingUtilities. isMiddleMouseButton(MouseEvent anEvent)Returns true if the mouse event specifies the middle mouse button.booleanJPopupMenu. isPopupTrigger(MouseEvent e)Returns true if theMouseEventis considered a popup trigger by theJPopupMenu's currently installed UI.static booleanSwingUtilities. isRightMouseButton(MouseEvent anEvent)Returns true if the mouse event specifies the right mouse button.voidToolTipManager. mouseDragged(MouseEvent event)Called when the mouse is pressed and dragged.voidToolTipManager. mouseEntered(MouseEvent event)Called when the mouse enters the region of a component.voidToolTipManager. mouseExited(MouseEvent event)Called when the mouse exits the region of a component.voidToolTipManager. mouseMoved(MouseEvent event)Called when the mouse is moved.voidToolTipManager. mousePressed(MouseEvent event)Called when the mouse is pressed.protected voidJComponent. processMouseEvent(MouseEvent e)Processes mouse events occurring on this component by dispatching them to any registeredMouseListenerobjects, refer toComponent.processMouseEvent(MouseEvent)for a complete description of this method.voidJMenuBar. processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)Implemented to be aMenuElement-- does nothing.voidJMenuItem. processMouseEvent(MouseEvent e, MenuElement[] path, MenuSelectionManager manager)Processes a mouse event forwarded from theMenuSelectionManagerand changes the menu selection, if necessary, by using theMenuSelectionManager's API.voidJPopupMenu. processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)This method is required to conform to theMenuElementinterface, but it not implemented.voidMenuElement. processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)Processes a mouse event.voidMenuSelectionManager. processMouseEvent(MouseEvent event)When a MenuElement receives an event from a MouseListener, it should never process the event directly.protected voidJComponent. processMouseMotionEvent(MouseEvent e)Processes mouse motion events, such as MouseEvent.MOUSE_DRAGGED. -
Uses of MouseEvent in javax.swing.event
Subclasses of MouseEvent in javax.swing.event Modifier and Type Class Description classMenuDragMouseEventMenuDragMouseEvent is used to notify interested parties that the menu element has received a MouseEvent forwarded to it under drag conditions. -
Uses of MouseEvent in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type MouseEvent Modifier and Type Method Description booleanPopupMenuUI. isPopupTrigger(MouseEvent e)Returns whether or not the givenMouseEventis the popup menu trigger event for the platformprotected voidLayerUI. processMouseEvent(MouseEvent e, JLayer<? extends V> l)Processes mouse events occurring on theJLayeror any of its subcomponents.protected voidLayerUI. processMouseMotionEvent(MouseEvent e, JLayer<? extends V> l)Processes mouse motion event occurring on theJLayeror any of its subcomponents. -
Uses of MouseEvent in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic that return MouseEvent Modifier and Type Method Description protected MouseEventBasicComboPopup. convertMouseEvent(MouseEvent e)Converts mouse event.Methods in javax.swing.plaf.basic with parameters of type MouseEvent Modifier and Type Method Description protected voidBasicSplitPaneDivider.DragController. completeDrag(MouseEvent e)Messages finishDraggingTo with the new location for the mouse event.protected voidBasicSplitPaneDivider.DragController. continueDrag(MouseEvent e)Messages dragDividerTo with the new location for the mouse event.protected MouseEventBasicComboPopup. convertMouseEvent(MouseEvent e)Converts mouse event.protected voidBasicComboPopup. delegateFocus(MouseEvent e)This is a utility method that helps event handlers figure out where to send the focus when the popup is brought up.protected booleanBasicTreeUI. isMultiSelectEvent(MouseEvent event)Returningtruesignifies a mouse event on the node should select from the anchor point.protected booleanBasicTreeUI. isToggleEvent(MouseEvent event)Returningtrueindicates the row under the mouse should be toggled based on the event.protected booleanBasicTreeUI. isToggleSelectionEvent(MouseEvent event)Returningtruesignifies a mouse event on the node should toggle the selection of only the row under mouse.voidBasicMenuUI.MouseInputHandler. mouseDragged(MouseEvent e)Invoked when a mouse button is pressed on the menu and then dragged.voidBasicScrollBarUI.TrackListener. mouseDragged(MouseEvent e)Set the models value to the position of the thumb's top of Vertical scrollbar, or the left/right of Horizontal scrollbar in left-to-right/right-to-left scrollbar relative to the origin of the track.voidBasicSliderUI.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.voidBasicSplitPaneDivider.MouseHandler. mouseDragged(MouseEvent e)If dragger is not null it is messaged with continueDrag.voidBasicFileChooserUI.DoubleClickListener. mouseEntered(MouseEvent e)The JList used for representing the files is created by subclasses, but the selection is monitored in this class.voidBasicMenuUI.MouseInputHandler. mouseEntered(MouseEvent e)Invoked when the cursor enters the menu.voidBasicSplitPaneDivider.MouseHandler. mouseEntered(MouseEvent e)Invoked when the mouse enters a component.voidBasicScrollBarUI.TrackListener. mouseExited(MouseEvent e)Invoked when the mouse exits the scrollbar.voidBasicSplitPaneDivider.MouseHandler. mouseExited(MouseEvent e)Invoked when the mouse exits a component.voidBasicSplitPaneDivider.MouseHandler. mouseMoved(MouseEvent e)Resets the cursor based on the orientation.voidBasicTreeUI.MouseHandler. mouseMoved(MouseEvent e)Invoked when the mouse button has been moved on a component (with no buttons no down).voidBasicComboPopup.InvocationMouseHandler. mousePressed(MouseEvent e)Responds to mouse-pressed events on the combo box.voidBasicMenuUI.MouseInputHandler. mousePressed(MouseEvent e)Invoked when the mouse has been clicked on the menu.voidBasicScrollBarUI.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.voidBasicSliderUI.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.voidBasicSplitPaneDivider.MouseHandler. mousePressed(MouseEvent e)Starts the dragging session by creating the appropriate instance of DragController.voidBasicTreeUI.MouseHandler. mousePressed(MouseEvent e)Invoked when a mouse button has been pressed on a component.voidBasicComboPopup.InvocationMouseHandler. mouseReleased(MouseEvent e)Responds to the user terminating a click or drag that began on the combo box.voidBasicMenuUI.MouseInputHandler. mouseReleased(MouseEvent e)Invoked when the mouse has been released on the menu.voidBasicSplitPaneDivider.MouseHandler. mouseReleased(MouseEvent e)If dragger is not null it is messaged with completeDrag.protected intBasicSplitPaneDivider.DragController. positionForMouseEvent(MouseEvent e)Returns the new position to put the divider at based on the passed in MouseEvent.protected intBasicSplitPaneDivider.VerticalDragController. positionForMouseEvent(MouseEvent e)Returns the new position to put the divider at based on the passed in MouseEvent.voidBasicCheckBoxMenuItemUI. processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)Invoked when mouse event occurs.voidBasicRadioButtonMenuItemUI. processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)Invoked when mouse event occurs.protected voidBasicTreeUI. selectPathForEvent(TreePath path, MouseEvent event)Messaged to update the selection based on aMouseEventover a particular row.protected booleanBasicTreeUI. startEditing(TreePath path, MouseEvent event)Will start editing for node if there is acellEditorandshouldSelectCellreturnstrue.protected voidBasicComboPopup. updateListBoxSelectionForEvent(MouseEvent anEvent, boolean shouldScroll)A utility method used by the event listeners.Constructors in javax.swing.plaf.basic with parameters of type MouseEvent Constructor Description DragController(MouseEvent e)Constructs a new instance ofDragController.MouseInputHandler(Component source, Component destination, MouseEvent event)Constructs a new instance ofMouseInputHandler.VerticalDragController(MouseEvent e)Constructs a new instance ofVerticalDragController. -
Uses of MouseEvent in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type MouseEvent Modifier and Type Method Description booleanMultiPopupMenuUI. isPopupTrigger(MouseEvent a)Invokes theisPopupTriggermethod on each UI handled by this object. -
Uses of MouseEvent in javax.swing.table
Methods in javax.swing.table with parameters of type MouseEvent Modifier and Type Method Description StringJTableHeader. 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 Modifier and Type Method Description StringJTextComponent. getToolTipText(MouseEvent event)Returns the string to be used as the tooltip forevent.voidDefaultCaret. mouseClicked(MouseEvent e)Called when the mouse is clicked.voidDefaultCaret. mouseDragged(MouseEvent e)Moves the caret position according to the mouse pointer's current location.voidDefaultCaret. mouseEntered(MouseEvent e)Called when the mouse enters a region.voidDefaultCaret. mouseExited(MouseEvent e)Called when the mouse exits a region.voidDefaultCaret. mouseMoved(MouseEvent e)Called when the mouse is moved.voidDefaultCaret. 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.voidDefaultCaret. mouseReleased(MouseEvent e)Called when the mouse is released.protected voidDefaultCaret. moveCaret(MouseEvent e)Tries to move the position of the caret from the coordinates of a mouse event, using viewToModel().protected voidDefaultCaret. positionCaret(MouseEvent e)Tries to set the position of the caret from the coordinates of a mouse event, using viewToModel(). -
Uses of MouseEvent in javax.swing.text.html
Methods in javax.swing.text.html with parameters of type MouseEvent Modifier and Type Method Description voidHTMLEditorKit.LinkController. mouseClicked(MouseEvent e)Called for a mouse click event.
-