Available Methods
- getParent ( )
- getPreferredSize ( )
- isVisible ( )
- isEnabled ( )
- setEnabled ( )
- setFont ( )
- getHeight ( )
- getName ( )
- setBackground ( )
- getPeer ( )
- getLocationOnScreen ( )
- getWidth ( )
- getBounds ( )
- setForeground ( )
- getFont ( )
- BaselineResizeBehavior ( )
- isShowing ( )
- setBounds ( )
- getMinimumSize ( )
- setVisible ( )
- getSize ( )
- repaint ( )
- setSize ( )
- setPreferredSize ( )
- setLocation ( )
- getTreeLock ( )
- getDropTarget ( )
- dispatchEvent ( )
- addComponentListener ( )
- getInputMethodRequests ( )
- getX ( )
- getY ( )
- isOpaque ( )
- addMouseListener ( )
- requestFocus ( )
- getBackground ( )
- getAccessibleContext ( )
- setDropTarget ( )
- paint ( )
- getForeground ( )
- isFocusCycleRoot ( )
- getGraphics ( )
- getLocation ( )
- setMinimumSize ( )
- hasFocus ( )
- getGraphicsConfiguration ( )
- setMaximumSize ( )
- addHierarchyListener ( )
- isFocusable ( )
- requestFocusInWindow ( )
- isDisplayable ( )
- removeComponentListener ( )
- addKeyListener ( )
- addFocusListener ( )
- validate ( )
- getToolkit ( )
- getClass ( )
- setCursor ( )
- add ( )
- getLocale ( )
- getCursor ( )
- equals ( )
- getFontMetrics ( )
- size ( )
- getMaximumSize ( )
- invalidate ( )
- CENTER_ALIGNMENT
- move ( )
- removeMouseMotionListener ( )
- update ( )
- setFocusable ( )
- removeFocusListener ( )
- contains ( )
- addPropertyChangeListener ( )
- removeMouseListener ( )
- createImage ( )
- isValid ( )
- addMouseMotionListener ( )
- setName ( )
- getFocusCycleRootAncestor ( )
- getInputContext ( )
Related Classes
- java.io.File
- java.awt.Color
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.swing.JPanel
- java.awt.Dimension
- java.awt.Font
- java.awt.event.MouseEvent
- javax.swing.JLabel
- java.awt.Graphics2D
- java.awt.Graphics
- javax.swing.JButton
- java.awt.event.KeyEvent
- java.awt.BorderLayout
- javax.swing.JOptionPane
- javax.swing.JScrollPane
- java.awt.Rectangle
- javax.swing.JTextField
- javax.swing.SwingUtilities
- java.awt.event.MouseAdapter
- javax.swing.ImageIcon
- javax.swing.JFileChooser
- java.awt.Point
- javax.swing.JComponent
- javax.swing.JCheckBox
Java Code Examples for java.awt.Component#removeMouseMotionListener()
The following examples show how to use
java.awt.Component#removeMouseMotionListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MagnificationPanel.java From pumpernickel with MIT License | 5 votes |
private void removeMouseListeners(Component c) { c.removeMouseMotionListener(mouseListener); c.removeMouseListener(mouseListener); if (c instanceof Container) { Container c2 = (Container) c; c2.removeContainerListener(containerListener); for (Component child : c2.getComponents()) { addMouseListeners(child); } } }
Example 2
Source File: DescendantMouseListener.java From pumpernickel with MIT License | 5 votes |
/** * Remove all our internal listeners from a component and its descendants. */ private void removeListeners(DefaultMutableTreeNode componentNode) { Component c = (Component) componentNode.getUserObject(); c.removeHierarchyListener(hierarchyListener); c.removeMouseListener(mouseListener); c.removeMouseMotionListener(mouseListener); for (int a = 0; a < componentNode.getChildCount(); a++) { removeListeners((DefaultMutableTreeNode) componentNode .getChildAt(a)); } if (c instanceof Container) ((Container) c).removeContainerListener(containerListener); }
Example 3
Source File: WindowMover.java From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 | 4 votes |
private void removeListeners(Component com) { com.removeMouseListener(ma); com.removeMouseMotionListener(mma); }
Example 4
Source File: DragReorderHandler.java From Pixelitor with GNU General Public License v3.0 | 4 votes |
public void detachFromComponent(Component c) { c.removeMouseListener(this); c.removeMouseMotionListener(this); }
Example 5
Source File: GlobalMouseAdapter.java From jclic with GNU General Public License v2.0 | 4 votes |
public void detach(Component cmp) { if (cmp != null) { cmp.removeMouseListener(this); cmp.removeMouseMotionListener(this); } }