question: public void closePopout ( Channel channel ) { if ( channel == null ) { return ; } if ( ! dialogs . containsKey ( channel ) ) { return ; } JDialog dialog = dialogs . remove ( channel ) ; dialog . dispose ( ) ; popoutDisposed ( channel ) ; }
target:  Close the popout for the given channel (if it exists) and move the channel back to the main window.