public void mouseClicked(MouseEvent e){
  if (e.getClickCount() > 1) {
    System.gc();
  }
}

public void mouseClicked ( MouseEvent e ) { if ( e . getClickCount ( ) > 1 ) { System . gc ( ) ; } }
invoked when the mouse has been clicked on a component .
