src/net/java/sip/communicator/impl/gui/main/call/DesktopSharingMouseAndKeyboardListener.java
/**
     * This method is called when remote control has been granted.
     *
     * @param event The event which grants us the control of the remote call
     * peer.
     */
This method is called when remote control has been granted.
@param event The event which grants us the control of the remote call
peer.
This method is called when remote control has been granted . @param event The event which grants us the control of the remote call peer .
public void remoteControlGranted(RemoteControlGrantedEvent event)
    {
        synchronized(videoComponentMutex)
        {
            if(videoComponent != null)
            {
                videoComponent.addKeyListener(this);
                videoComponent.addMouseListener(this);
                videoComponent.addMouseMotionListener(this);
            }
            if (callPeerRenderer != null)
            {
                callPeerRenderer.setDtmfToneEnabled(false);
            }
        }
    }
public void remoteControlGranted ( RemoteControlGrantedEvent event ) { synchronized ( videoComponentMutex ) { if ( videoComponent != null ) { videoComponent . addKeyListener ( this ) ; videoComponent . addMouseListener ( this ) ; videoComponent . addMouseMotionListener ( this ) ; } if ( callPeerRenderer != null ) { callPeerRenderer . setDtmfToneEnabled ( false ) ; } } }
This method is called when remote control has been granted.
This method is called when remote control has been granted .