Package java.awt

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


    }

    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

               || property.equals(JInternalFrame.GLASS_PANE_PROPERTY))
        {
          Component old = (Component) evt.getOldValue();
          if (old != null)
            {
              old.removeMouseListener(glassPaneDispatcher);
              old.removeMouseMotionListener(glassPaneDispatcher);
            }

          Component newPane = (Component) evt.getNewValue();
          if (newPane != null)
View Full Code Here

    public void deactivate ()
    {
        if (_host != null) {
            // unwire ourselves from the host component
            Component comp = _host.getComponent();
            comp.removeMouseListener(this);
            comp.removeMouseMotionListener(this);

            // reinstate the previous mouse listeners
            if (_hijacker != null) {
                _hijacker.release();
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.