Uses of Class
java.awt.event.MouseEvent
-
Packages that use MouseEvent 软件包 描述 java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.dnd 拖放是在许多图形用户界面系统中发现的直接操纵手势,它提供了一种在逻辑上与GUI中的表示元素相关联的实体之间传递信息的机制。java.awt.event 提供用于处理AWT组件触发的不同类型事件的接口和类。javafx.embed.swing 提供一组在Swing应用程序中使用JavaFX的类。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.event 提供Swing组件触发的事件。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观构建的用户界面对象(一旦代号为 Metal ),这是默认的外观和感觉。javax.swing.plaf.multi 提供组合两种或多种外观和感觉的用户界面对象。javax.swing.table 提供处理javax.swing.JTable
类和接口。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。javax.swing.text.html 提供HTMLEditorKit
和用于创建HTML文本编辑器的支持类。 -
-
Uses of MouseEvent in java.awt
Methods in java.awt with parameters of type MouseEvent Modifier and Type 方法 描述 void
AWTEventMulticaster. mouseClicked(MouseEvent e)
通过在listener-a和listener-b上调用mouseClicked方法来处理mouseClicked事件。void
AWTEventMulticaster. mouseDragged(MouseEvent e)
通过在listener-a和listener-b上调用mouseDragged方法来处理mouseDragged事件。void
AWTEventMulticaster. mouseEntered(MouseEvent e)
通过在listener-a和listener-b上调用mouseEntered方法来处理mouseEntered事件。void
AWTEventMulticaster. mouseExited(MouseEvent e)
通过在listener-a和listener-b上调用mouseExited方法来处理mouseExited事件。void
AWTEventMulticaster. mouseMoved(MouseEvent e)
通过在listener-a和listener-b上调用mouseMoved方法来处理mouseMoved事件。void
AWTEventMulticaster. mousePressed(MouseEvent e)
通过在listener-a和listener-b上调用mousePressed方法来处理mousePressed事件。void
AWTEventMulticaster. mouseReleased(MouseEvent e)
通过在listener-a和listener-b上调用mouseReleased方法来处理mouseReleased事件。protected void
Component. processMouseEvent(MouseEvent e)
通过将此组件发送到任何已注册的MouseListener
对象来处理发生在此组件上的鼠标事件。protected void
Component. processMouseMotionEvent(MouseEvent e)
通过将此组件发送到任何已注册的MouseMotionListener
对象来处理发生在该组件上的鼠标运动事件。 -
Uses of MouseEvent in java.awt.dnd
Methods in java.awt.dnd with parameters of type MouseEvent Modifier and Type 方法 描述 void
MouseDragGestureRecognizer. mouseClicked(MouseEvent e)
当鼠标点击组件时调用。void
MouseDragGestureRecognizer. mouseDragged(MouseEvent e)
在组件上按下鼠标按钮时调用。void
MouseDragGestureRecognizer. mouseEntered(MouseEvent e)
当鼠标进入组件时调用。void
MouseDragGestureRecognizer. mouseExited(MouseEvent e)
当鼠标退出组件时调用。void
MouseDragGestureRecognizer. mouseMoved(MouseEvent e)
在组件上移动鼠标按钮时调用(没有按钮没有关闭)。void
MouseDragGestureRecognizer. mousePressed(MouseEvent e)
在Component
上按下鼠标按钮时调用。void
MouseDragGestureRecognizer. mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。 -
Uses of MouseEvent in java.awt.event
Subclasses of MouseEvent in java.awt.event Modifier and Type Class 描述 class
MouseWheelEvent
指示鼠标轮在组件中旋转的事件。Methods in java.awt.event with parameters of type MouseEvent Modifier and Type 方法 描述 void
MouseAdapter. mouseClicked(MouseEvent e)
在组件上单击(按下并释放)鼠标按钮时调用。void
MouseListener. mouseClicked(MouseEvent e)
在组件上单击(按下并释放)鼠标按钮时调用。void
MouseAdapter. mouseDragged(MouseEvent e)
在组件上按下鼠标按钮然后拖动时调用。void
MouseMotionAdapter. mouseDragged(MouseEvent e)
在组件上按下鼠标按钮然后拖动时调用。void
MouseMotionListener. mouseDragged(MouseEvent e)
在组件上按下鼠标按钮然后拖动时调用。void
MouseAdapter. mouseEntered(MouseEvent e)
当鼠标进入组件时调用。void
MouseListener. mouseEntered(MouseEvent e)
当鼠标进入组件时调用。void
MouseAdapter. mouseExited(MouseEvent e)
当鼠标退出组件时调用。void
MouseListener. mouseExited(MouseEvent e)
当鼠标退出组件时调用。void
MouseAdapter. mouseMoved(MouseEvent e)
当鼠标光标移动到组件上但没有按钮被按下时调用。void
MouseMotionAdapter. mouseMoved(MouseEvent e)
在组件上移动鼠标按钮时调用(没有按钮没有关闭)。void
MouseMotionListener. mouseMoved(MouseEvent e)
当鼠标光标移动到组件上但没有按钮被按下时调用。void
MouseAdapter. mousePressed(MouseEvent e)
在组件上按下鼠标按钮时调用。void
MouseListener. mousePressed(MouseEvent e)
在组件上按下鼠标按钮时调用。void
MouseAdapter. mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。void
MouseListener. mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。 -
Uses of MouseEvent in javafx.embed.swing
Methods in javafx.embed.swing with parameters of type MouseEvent Modifier and Type 方法 描述 protected void
JFXPanel. processMouseEvent(MouseEvent e)
覆盖Component.processMouseEvent(MouseEvent)
方法将鼠标事件发送到附加到此JFXPanel
的JavaFX场景。protected void
JFXPanel. processMouseMotionEvent(MouseEvent e)
覆盖Component.processMouseMotionEvent(MouseEvent)
方法将鼠标移动事件发送到连接到此JFXPanel
的JavaFX场景。 -
Uses of MouseEvent in javax.swing
Methods in javax.swing that return MouseEvent Modifier and Type 方法 描述 static MouseEvent
SwingUtilities. convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)
返回类似于sourceEvent
的MouseEvent,但其x和y成员已转换为destination
的坐标系。Methods in javax.swing with parameters of type MouseEvent Modifier and Type 方法 描述 static MouseEvent
SwingUtilities. convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)
返回类似于sourceEvent
的MouseEvent,但其x和y成员已转换为destination
的坐标系。Point
JComponent. getPopupLocation(MouseEvent event)
返回在该组件的坐标系中显示弹出菜单的首选位置。Point
JComponent. getToolTipLocation(MouseEvent event)
返回此组件坐标系中的工具提示位置。String
JComponent. getToolTipText(MouseEvent event)
返回要用作 事件的工具提示的字符串。String
JList. getToolTipText(MouseEvent event)
返回用于给定事件的工具提示文本。String
JTabbedPane. getToolTipText(MouseEvent event)
返回由鼠标事件位置确定的组件的工具提示文本。String
JTable. getToolTipText(MouseEvent event)
覆盖JComponent
的getToolTipText
方法,以允许渲染器的提示被使用,如果它有文本集。String
JTree. getToolTipText(MouseEvent event)
覆盖JComponent
的getToolTipText
方法,以便允许使用渲染器的提示,如果它具有文本集。static boolean
SwingUtilities. isLeftMouseButton(MouseEvent anEvent)
如果鼠标事件指定鼠标左键,则返回true。static boolean
SwingUtilities. isMiddleMouseButton(MouseEvent anEvent)
如果鼠标事件指定鼠标中键,则返回true。boolean
JPopupMenu. isPopupTrigger(MouseEvent e)
如果MouseEvent
被JPopupMenu
当前安装的UI视为弹出式触发器,则返回true。static boolean
SwingUtilities. isRightMouseButton(MouseEvent anEvent)
如果鼠标事件指定了鼠标右键,则返回true。void
ToolTipManager. mouseDragged(MouseEvent event)
当鼠标被按下并拖动时调用。void
ToolTipManager. mouseEntered(MouseEvent event)
当鼠标进入组件的区域时调用。void
ToolTipManager. mouseExited(MouseEvent event)
当鼠标退出组件的区域时调用。void
ToolTipManager. mouseMoved(MouseEvent event)
当鼠标移动时调用。void
ToolTipManager. mousePressed(MouseEvent event)
当鼠标被按下时调用。protected void
JComponent. processMouseEvent(MouseEvent e)
通过将此组件发送到任何已注册的MouseListener
对象来处理发生在该组件上的鼠标事件,有关此方法的完整说明,请参阅Component.processMouseEvent(MouseEvent)
。void
JMenuBar. processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
实现成为一个MenuElement
- 什么也没做。void
JMenuItem. processMouseEvent(MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
处理从MenuSelectionManager
转发的鼠标事件,如有必要,使用MenuSelectionManager
的API更改菜单选项。void
JPopupMenu. processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
这种方法是符合MenuElement
接口所必需的,但没有实现。void
MenuElement. processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager)
处理鼠标事件。void
MenuSelectionManager. processMouseEvent(MouseEvent event)
当MenuElement从MouseListener接收到一个事件时,它不应该直接处理该事件。protected void
JComponent. processMouseMotionEvent(MouseEvent e)
处理鼠标运动事件,如MouseEvent.MOUSE_DRAGGED。 -
Uses of MouseEvent in javax.swing.event
Subclasses of MouseEvent in javax.swing.event Modifier and Type Class 描述 class
MenuDragMouseEvent
MenuDragMouseEvent用于通知有关方面,菜单元素已经在拖动条件下接收到转发给它的MouseEvent。 -
Uses of MouseEvent in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type MouseEvent Modifier and Type 方法 描述 boolean
PopupMenuUI. isPopupTrigger(MouseEvent e)
返回给定的MouseEvent
是否是平台的弹出菜单触发事件protected void
LayerUI. processMouseEvent(MouseEvent e, JLayer<? extends V> l)
处理发生在JLayer
或其任何子组件上的鼠标事件。protected void
LayerUI. processMouseMotionEvent(MouseEvent e, JLayer<? extends V> l)
处理JLayer
或其任何子组件发生的鼠标运动事件。 -
Uses of MouseEvent in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic that return MouseEvent Modifier and Type 方法 描述 protected MouseEvent
BasicComboPopup. convertMouseEvent(MouseEvent e)
转换鼠标事件。Methods in javax.swing.plaf.basic with parameters of type MouseEvent Modifier and Type 方法 描述 protected void
BasicSplitPaneDivider.DragController. completeDrag(MouseEvent e)
消息finishDraggingTo与鼠标事件的新位置。protected void
BasicSplitPaneDivider.DragController. continueDrag(MouseEvent e)
消息dragDividerTo与鼠标事件的新位置。protected MouseEvent
BasicComboPopup. convertMouseEvent(MouseEvent e)
转换鼠标事件。protected void
BasicComboPopup. delegateFocus(MouseEvent e)
这是一种实用方法,可帮助事件处理程序在弹出弹出窗口时找出发送焦点的位置。protected boolean
BasicTreeUI. isMultiSelectEvent(MouseEvent event)
返回true
表示节点上的鼠标事件应从锚点中选择。boolean
BasicPopupMenuUI. isPopupTrigger(MouseEvent e)
protected boolean
BasicTreeUI. isToggleEvent(MouseEvent event)
返回true
表示鼠标下的行应根据事件切换。protected boolean
BasicTreeUI. isToggleSelectionEvent(MouseEvent event)
返回true
表示节点上的鼠标事件应切换仅对鼠标下的行进行选择。void
BasicButtonListener. mouseClicked(MouseEvent e)
void
BasicFileChooserUI.DoubleClickListener. mouseClicked(MouseEvent e)
在组件上单击(按下并释放)鼠标按钮时调用。void
BasicInternalFrameUI.BorderListener. mouseClicked(MouseEvent e)
void
BasicInternalFrameUI.GlassPaneDispatcher. mouseClicked(MouseEvent e)
在组件上单击(按下并释放)鼠标按钮时调用。void
BasicListUI.MouseInputHandler. mouseClicked(MouseEvent e)
void
BasicMenuItemUI.MouseInputHandler. mouseClicked(MouseEvent e)
在组件上单击(按下并释放)鼠标按钮时调用。void
BasicMenuUI.MouseInputHandler. mouseClicked(MouseEvent e)
void
BasicTableHeaderUI.MouseInputHandler. mouseClicked(MouseEvent e)
void
BasicTableUI.MouseInputHandler. mouseClicked(MouseEvent e)
void
BasicToolBarUI.DockingListener. mouseClicked(MouseEvent e)
void
BasicTreeUI.MouseInputHandler. mouseClicked(MouseEvent e)
void
BasicButtonListener. mouseDragged(MouseEvent e)
void
BasicComboPopup.InvocationMouseMotionHandler. mouseDragged(MouseEvent e)
void
BasicDesktopIconUI.MouseInputHandler. mouseDragged(MouseEvent e)
void
BasicInternalFrameUI.BorderListener. mouseDragged(MouseEvent e)
void
BasicInternalFrameUI.GlassPaneDispatcher. mouseDragged(MouseEvent e)
在组件上按下鼠标按钮然后拖动时调用。void
BasicListUI.MouseInputHandler. mouseDragged(MouseEvent e)
void
BasicMenuItemUI.MouseInputHandler. mouseDragged(MouseEvent e)
在组件上按下鼠标按钮然后拖动时调用。void
BasicMenuUI.MouseInputHandler. mouseDragged(MouseEvent e)
在菜单上按下鼠标按钮然后拖动时调用。void
BasicScrollBarUI.TrackListener. mouseDragged(MouseEvent e)
将模型值设置为垂直滚动条的顶部的位置,或水平滚动条左右对齐/左右滚动条相对于轨迹原点的左/右。void
BasicSliderUI.TrackListener. mouseDragged(MouseEvent e)
将模型值设置为拇指顶部/左侧相对于轨迹原点的位置。void
BasicSplitPaneDivider.MouseHandler. mouseDragged(MouseEvent e)
如果dragger不为null,则会使用continueDrag进行消息传递。void
BasicTableHeaderUI.MouseInputHandler. mouseDragged(MouseEvent e)
void
BasicTableUI.MouseInputHandler. mouseDragged(MouseEvent e)
void
BasicToolBarUI.DockingListener. mouseDragged(MouseEvent e)
void
BasicTreeUI.MouseHandler. mouseDragged(MouseEvent e)
void
BasicTreeUI.MouseInputHandler. mouseDragged(MouseEvent e)
void
BasicButtonListener. mouseEntered(MouseEvent e)
void
BasicFileChooserUI.DoubleClickListener. mouseEntered(MouseEvent e)
用于表示文件的JList是由子类创建的,但是在此类中监视选择。void
BasicInternalFrameUI.BorderListener. mouseEntered(MouseEvent e)
void
BasicInternalFrameUI.GlassPaneDispatcher. mouseEntered(MouseEvent e)
当鼠标进入组件时调用。void
BasicListUI.MouseInputHandler. mouseEntered(MouseEvent e)
void
BasicMenuItemUI.MouseInputHandler. mouseEntered(MouseEvent e)
当鼠标进入组件时调用。void
BasicMenuUI.MouseInputHandler. mouseEntered(MouseEvent e)
当光标进入菜单时调用。void
BasicSplitPaneDivider.MouseHandler. mouseEntered(MouseEvent e)
当鼠标进入组件时调用。void
BasicTableHeaderUI.MouseInputHandler. mouseEntered(MouseEvent e)
void
BasicTableUI.MouseInputHandler. mouseEntered(MouseEvent e)
void
BasicToolBarUI.DockingListener. mouseEntered(MouseEvent e)
void
BasicTreeUI.MouseInputHandler. mouseEntered(MouseEvent e)
void
BasicButtonListener. mouseExited(MouseEvent e)
void
BasicInternalFrameUI.BorderListener. mouseExited(MouseEvent e)
void
BasicInternalFrameUI.GlassPaneDispatcher. mouseExited(MouseEvent e)
当鼠标退出组件时调用。void
BasicListUI.MouseInputHandler. mouseExited(MouseEvent e)
void
BasicMenuItemUI.MouseInputHandler. mouseExited(MouseEvent e)
当鼠标退出组件时调用。void
BasicMenuUI.MouseInputHandler. mouseExited(MouseEvent e)
void
BasicScrollBarUI.TrackListener. mouseExited(MouseEvent e)
当鼠标退出滚动条时调用。void
BasicSplitPaneDivider.MouseHandler. mouseExited(MouseEvent e)
当鼠标退出组件时调用。void
BasicTableHeaderUI.MouseInputHandler. mouseExited(MouseEvent e)
void
BasicTableUI.MouseInputHandler. mouseExited(MouseEvent e)
void
BasicToolBarUI.DockingListener. mouseExited(MouseEvent e)
void
BasicTreeUI.MouseInputHandler. mouseExited(MouseEvent e)
void
BasicButtonListener. mouseMoved(MouseEvent e)
void
BasicComboPopup.ListMouseMotionHandler. mouseMoved(MouseEvent anEvent)
void
BasicDesktopIconUI.MouseInputHandler. mouseMoved(MouseEvent e)
void
BasicInternalFrameUI.BorderListener. mouseMoved(MouseEvent e)
void
BasicInternalFrameUI.GlassPaneDispatcher. mouseMoved(MouseEvent e)
当鼠标光标移动到组件上但没有按钮被按下时调用。void
BasicListUI.MouseInputHandler. mouseMoved(MouseEvent e)
void
BasicMenuItemUI.MouseInputHandler. mouseMoved(MouseEvent e)
当鼠标光标移动到组件上但没有按钮被按下时调用。void
BasicMenuUI.MouseInputHandler. mouseMoved(MouseEvent e)
void
BasicScrollBarUI.TrackListener. mouseMoved(MouseEvent e)
当鼠标光标移动到组件上但没有按钮被按下时调用。void
BasicSliderUI.TrackListener. mouseMoved(MouseEvent e)
当鼠标光标移动到组件上但没有按钮被按下时调用。void
BasicSplitPaneDivider.MouseHandler. mouseMoved(MouseEvent e)
根据方向重新设置光标。void
BasicTableHeaderUI.MouseInputHandler. mouseMoved(MouseEvent e)
void
BasicTableUI.MouseInputHandler. mouseMoved(MouseEvent e)
void
BasicToolBarUI.DockingListener. mouseMoved(MouseEvent e)
void
BasicTreeUI.MouseHandler. mouseMoved(MouseEvent e)
在组件上移动鼠标按钮时调用(没有按钮没有关闭)。void
BasicTreeUI.MouseInputHandler. mouseMoved(MouseEvent e)
void
BasicButtonListener. mousePressed(MouseEvent e)
void
BasicComboPopup.InvocationMouseHandler. mousePressed(MouseEvent e)
响应组合框上的鼠标按下的事件。void
BasicComboPopup.ListMouseHandler. mousePressed(MouseEvent e)
void
BasicDesktopIconUI.MouseInputHandler. mousePressed(MouseEvent e)
void
BasicInternalFrameUI.BorderListener. mousePressed(MouseEvent e)
void
BasicInternalFrameUI.GlassPaneDispatcher. mousePressed(MouseEvent e)
在组件上按下鼠标按钮时调用。void
BasicListUI.MouseInputHandler. mousePressed(MouseEvent e)
void
BasicMenuItemUI.MouseInputHandler. mousePressed(MouseEvent e)
在组件上按下鼠标按钮时调用。void
BasicMenuUI.MouseInputHandler. mousePressed(MouseEvent e)
当鼠标在菜单上点击时调用。void
BasicScrollBarUI.ArrowButtonListener. mousePressed(MouseEvent e)
void
BasicScrollBarUI.TrackListener. mousePressed(MouseEvent e)
如果鼠标按在“thumb”组件上方,则将滚动条值减少一页(“向上”),否则将其增加一页。void
BasicSliderUI.TrackListener. mousePressed(MouseEvent e)
如果鼠标按在“thumb”组件上方,则将滚动条值减少一页(“向上”),否则将其增加一页。void
BasicSplitPaneDivider.MouseHandler. mousePressed(MouseEvent e)
通过创建适当的DragController实例来启动拖动会话。void
BasicTabbedPaneUI.MouseHandler. mousePressed(MouseEvent e)
void
BasicTableHeaderUI.MouseInputHandler. mousePressed(MouseEvent e)
void
BasicTableUI.MouseInputHandler. mousePressed(MouseEvent e)
void
BasicToolBarUI.DockingListener. mousePressed(MouseEvent e)
void
BasicTreeUI.MouseHandler. mousePressed(MouseEvent e)
在组件上按下鼠标按钮时调用。void
BasicTreeUI.MouseInputHandler. mousePressed(MouseEvent e)
void
BasicButtonListener. mouseReleased(MouseEvent e)
void
BasicComboPopup.InvocationMouseHandler. mouseReleased(MouseEvent e)
响应用户终止组合框上开始的点击或拖动。void
BasicComboPopup.ListMouseHandler. mouseReleased(MouseEvent anEvent)
void
BasicDesktopIconUI.MouseInputHandler. mouseReleased(MouseEvent e)
void
BasicInternalFrameUI.BorderListener. mouseReleased(MouseEvent e)
void
BasicInternalFrameUI.GlassPaneDispatcher. mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。void
BasicListUI.MouseInputHandler. mouseReleased(MouseEvent e)
void
BasicMenuItemUI.MouseInputHandler. mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。void
BasicMenuUI.MouseInputHandler. mouseReleased(MouseEvent e)
当鼠标在菜单上释放时调用。void
BasicScrollBarUI.ArrowButtonListener. mouseReleased(MouseEvent e)
void
BasicScrollBarUI.TrackListener. mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。void
BasicSliderUI.TrackListener. mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。void
BasicSplitPaneDivider.MouseHandler. mouseReleased(MouseEvent e)
如果dragger不为null,则会使用completeDrag进行消息传递。void
BasicTableHeaderUI.MouseInputHandler. mouseReleased(MouseEvent e)
void
BasicTableUI.MouseInputHandler. mouseReleased(MouseEvent e)
void
BasicToolBarUI.DockingListener. mouseReleased(MouseEvent e)
void
BasicTreeUI.MouseHandler. mouseReleased(MouseEvent e)
void
BasicTreeUI.MouseInputHandler. mouseReleased(MouseEvent e)
protected int
BasicSplitPaneDivider.DragController. positionForMouseEvent(MouseEvent e)
返回基于MouseEvent中传递的分隔符的新位置。protected int
BasicSplitPaneDivider.VerticalDragController. positionForMouseEvent(MouseEvent e)
返回基于MouseEvent中传递的分隔符的新位置。void
BasicCheckBoxMenuItemUI. processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
当鼠标事件发生时调用。void
BasicRadioButtonMenuItemUI. processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager)
当鼠标事件发生时调用。protected void
BasicTreeUI. selectPathForEvent(TreePath path, MouseEvent event)
通过特定行更新基于MouseEvent
的选择。protected boolean
BasicTreeUI. startEditing(TreePath path, MouseEvent event)
如果有cellEditor
和shouldSelectCell
返回true
将开始编辑节点。protected void
BasicComboPopup. updateListBoxSelectionForEvent(MouseEvent anEvent, boolean shouldScroll)
事件侦听器使用的实用方法。Constructors in javax.swing.plaf.basic with parameters of type MouseEvent Constructor 描述 DragController(MouseEvent e)
构造一个新的实例DragController
。MouseInputHandler(Component source, Component destination, MouseEvent event)
构造一个新的实例MouseInputHandler
。VerticalDragController(MouseEvent e)
构造新的实例VerticalDragController
。 -
Uses of MouseEvent in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal with parameters of type MouseEvent Modifier and Type 方法 描述 void
MetalComboBoxUI.MetalComboPopup. delegateFocus(MouseEvent e)
已过时。void
MetalToolBarUI.MetalDockingListener. mouseDragged(MouseEvent e)
void
MetalToolBarUI.MetalDockingListener. mousePressed(MouseEvent e)
-
Uses of MouseEvent in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type MouseEvent Modifier and Type 方法 描述 boolean
MultiPopupMenuUI. isPopupTrigger(MouseEvent a)
在此对象处理的每个UI上调用isPopupTrigger
方法。 -
Uses of MouseEvent in javax.swing.table
Methods in javax.swing.table with parameters of type MouseEvent Modifier and Type 方法 描述 String
JTableHeader. getToolTipText(MouseEvent event)
允许渲染器的提示被使用,如果有文本集。 -
Uses of MouseEvent in javax.swing.text
Methods in javax.swing.text with parameters of type MouseEvent Modifier and Type 方法 描述 String
JTextComponent. getToolTipText(MouseEvent event)
返回要用作event
的工具提示的event
。void
DefaultCaret. mouseClicked(MouseEvent e)
当鼠标点击时调用。void
DefaultCaret. mouseDragged(MouseEvent e)
根据鼠标指针的当前位置移动插入符号位置。void
DefaultCaret. mouseEntered(MouseEvent e)
当鼠标进入区域时调用。void
DefaultCaret. mouseExited(MouseEvent e)
当鼠标退出区域时调用。void
DefaultCaret. mouseMoved(MouseEvent e)
当鼠标移动时调用。void
DefaultCaret. mousePressed(MouseEvent e)
如果按下按钮1,则将其实现为请求关注相关联的文本组件,并设置插入符位置。void
DefaultCaret. mouseReleased(MouseEvent e)
当鼠标释放时调用。protected void
DefaultCaret. moveCaret(MouseEvent e)
尝试使用viewToModel()从鼠标事件的坐标移动插入符的位置。protected void
DefaultCaret. positionCaret(MouseEvent e)
尝试使用viewToModel()从鼠标事件的坐标设置插入符号的位置。 -
Uses of MouseEvent in javax.swing.text.html
Methods in javax.swing.text.html with parameters of type MouseEvent Modifier and Type 方法 描述 void
HTMLEditorKit.LinkController. mouseClicked(MouseEvent e)
被称为鼠标点击事件。void
HTMLEditorKit.LinkController. mouseDragged(MouseEvent e)
void
HTMLEditorKit.LinkController. mouseMoved(MouseEvent e)
void
FormView.MouseEventListener. mouseReleased(MouseEvent evt)
-