question: @ Override public void stateChanged ( ChangeEvent e ) { updateFrameTitle ( ) ; updateMenu ( ) ; if ( e . getSource ( ) instanceof JComponent ) { setTabTitle ( ( JComponent ) e . getSource ( ) ) ; } }
target:  Invoked when the target of the listener has changed its state.