Examples of removeMouseListener()


Examples of java.awt.Component.removeMouseListener()

    {
      Component  c;
   
      while( !collObservedComponents.isEmpty() ) {
        c  = (Component) collObservedComponents.remove( 0 );
        c.removeMouseListener( this );
        c.removeMouseMotionListener( this );
      }
    }

    public void toolDismissed( Component c )
View Full Code Here

Examples of java.awt.Component.removeMouseListener()

      cpn = (Component)grabbed.elementAt(i);
      if(cpn instanceof java.awt.Window) {
    ((java.awt.Window)cpn).removeWindowListener(pwa);
    ((java.awt.Window)cpn).removeComponentListener(pca);
      } else {
    cpn.removeMouseListener(pma);
    cpn.removeMouseMotionListener(pma);
    if (on1dot4) {
        try {
      Class types[] = { Class.forName("java.awt.event.MouseWheelListener") };
      Object args[] = { pmwl };
View Full Code Here

Examples of java.awt.Component.removeMouseListener()

    }

    private void removeScrollPane( JScrollPane p )
    {
      final Component c = p.getViewport().getView();
      c.removeMouseListener( this );
      c.removeFocusListener( this );
      if( DEBUG ) System.err.println( "removeFocus/MouseListener " + c.getClass().getName() + "(" + c.hashCode() + ")" );
    }

    public void componentAdded( ContainerEvent e )
View Full Code Here

Examples of java.awt.Window.removeMouseListener()

      public void hide () {
        if (bt != null) {
          isShowing = false;
          hidePopupTimer.stop();
          parent.removeComponentListener(componentEar);
          parent.removeMouseListener(mouseEar);
          owner.removeMouseListener(mouseEar);
          owner.removeFocusListener(focusEar);
          bt.setVisible(false);
          bt.dispose();
        }
View Full Code Here

Examples of javax.swing.JLabel.removeMouseListener()

        JLabel icon = new JLabel(new ImageIcon(this.getClass()
            .getResource("/images/button-ok.png")));
        icon.setToolTipText("Cerrar");

        icon.removeMouseListener(null);
        icon.addMouseListener(new Cerrar(frame, message_));

        JLabel text = new JLabel(texto);
        text.setBackground(Color.WHITE);
        text.setForeground(Color.BLACK);
View Full Code Here

Examples of javax.swing.JMenu.removeMouseListener()

        }

        final JMenu menu = (JMenu)menuItem;
        menu.removeMenuDragMouseListener(menuDragMouseListener);
        menuDragMouseListener = null;
        menu.removeMouseListener(mouseInputListener);
        menu.removeMouseMotionListener(mouseInputListener);
        mouseInputListener = null;
        menu.removeMenuKeyListener(menuKeyListener);
        menuKeyListener = null;
        menu.removePropertyChangeListener(propertyChangeListener);
View Full Code Here

Examples of javax.swing.JMenu.removeMouseListener()

        }

        final JMenu menu = (JMenu)menuItem;
        menu.removeMenuDragMouseListener(menuDragMouseListener);
        menuDragMouseListener = null;
        menu.removeMouseListener(mouseInputListener);
        menu.removeMouseMotionListener(mouseInputListener);
        mouseInputListener = null;
        menu.removeMenuKeyListener(menuKeyListener);
        menuKeyListener = null;
        menu.removePropertyChangeListener(propertyChangeListener);
View Full Code Here

Examples of javax.swing.JTextPane.removeMouseListener()

    textPane.requestFocus();
    origHeight = textPane.getBounds().height;

    sectionWidget.designer.setIgnoreKeys(true);

    textPane.removeMouseListener(this);
    textPane.removeMouseMotionListener(this);

    changingEditState = false;

    typingCommand = new TypingCommand(this, origHeight);
View Full Code Here

Examples of javax.swing.JTree.removeMouseListener()

            JTree comp = (JTree)this._component;
            if (this.draggable){
              // TF:27/04/2009:Changed this to use the single instance of the DragMouseAdapter
                comp.setDragEnabled(true);
                comp.setTransferHandler(ClientEventManager.getObjectDropTransferHandler());
                comp.removeMouseListener(DragMouseAdapter.getInstance());
                comp.addMouseListener(DragMouseAdapter.getInstance());
            } else {
                comp.setDragEnabled(false);
                comp.setTransferHandler(null);
                comp.removeMouseListener(DragMouseAdapter.getInstance());
View Full Code Here

Examples of javax.swing.JTree.removeMouseListener()

                comp.removeMouseListener(DragMouseAdapter.getInstance());
                comp.addMouseListener(DragMouseAdapter.getInstance());
            } else {
                comp.setDragEnabled(false);
                comp.setTransferHandler(null);
                comp.removeMouseListener(DragMouseAdapter.getInstance());
            }
        }
    }

    public static void set(JTree comp, boolean value){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.