question: public void closeFile ( boolean showCancel ) { if ( getCurrentIndex ( ) == - 1 ) { return ; } if ( ! saveChanges ( showCancel ) ) { return ; } tabbedPane . removeTabAt ( getCurrentIndex ( ) ) ; updateFrameTitle ( ) ; System . gc ( ) ; }
target:  closes the current tab