@Override public String toString(){
  if (getUserObject() instanceof TvShow) {
    TvShow tvShow=(TvShow)getUserObject();
    return tvShow.getTitle();
  }
  return super.toString();
}

@ Override public String toString ( ) { if ( getUserObject ( ) instanceof TvShow ) { TvShow tvShow = ( TvShow ) getUserObject ( ) ; return tvShow . getTitle ( ) ; } return super . toString ( ) ; }
provides the right name of the node for display .
