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 ( ) ; _hijacker = null ; } // tell our host that we are no longer _host . menuDeactivated ( this ) ; // fire off a last repaint to clean up after ourselves repaint ( ) ; } // clear out our references _host = null ; _tbounds = null ; _argument = null ; // clear out our action listeners _actlist . clear ( ) ; }
Deactivates the menu .