public void closePopout(Channel channel){
  if (channel == null) {
    return;
  }
  if (!dialogs.containsKey(channel)) {
    return;
  }
  JDialog dialog=dialogs.remove(channel);
  dialog.dispose();
  popoutDisposed(channel);
}

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