code: public void setMenuPopup(boolean menuPopup) {
  		table.getTableHeader().removeMouseListener(this);
  
  		if (menuPopup) {
  			table.getTableHeader().addMouseListener(this);
  		}
  		
  		this.menuPopup = menuPopup;
  	}
docs: Add/remove support for a popup menu to the table header. The popup menu
  will give the user control over which columns are visible.
  
  @param menuPopup
  when true support for displaying a popup menu is added
  otherwise the popup menu is removed.