public void mouseReleased ( int button , int x , int y ) { setFocus ( Rectangle . contains ( x , y , getX ( ) , getY ( ) , getWidth ( ) , getHeight ( ) ) ) ; }
Gives the focus to this component with a click of the mouse .