private void initPopupMenus(){
  m_PopupHeader=new JPopupMenu();
  m_PopupHeader.addMouseListener(this);
  m_PopupHeader.add(menuItemMean);
  if (!isReadOnly()) {
    m_PopupHeader.addSeparator();
    m_PopupHeader.add(menuItemSetAllValues);
    m_PopupHeader.add(menuItemSetMissingValues);
    m_PopupHeader.add(menuItemReplaceValues);
    m_PopupHeader.addSeparator();
    m_PopupHeader.add(menuItemRenameAttribute);
    m_PopupHeader.add(menuItemAttributeAsClass);
    m_PopupHeader.add(menuItemDeleteAttribute);
    m_PopupHeader.add(menuItemDeleteAttributes);
    m_PopupHeader.add(menuItemSortInstances);
  }
  m_PopupHeader.addSeparator();
  m_PopupHeader.add(menuItemOptimalColWidth);
  m_PopupHeader.add(menuItemOptimalColWidths);
  m_PopupRows=new JPopupMenu();
  m_PopupRows.addMouseListener(this);
  if (!isReadOnly()) {
    m_PopupRows.add(menuItemUndo);
    m_PopupRows.addSeparator();
  }
  m_PopupRows.add(menuItemCopy);
  m_PopupRows.addSeparator();
  m_PopupRows.add(menuItemSearch);
  m_PopupRows.add(menuItemClearSearch);
  if (!isReadOnly()) {
    m_PopupRows.addSeparator();
    m_PopupRows.add(menuItemDeleteSelectedInstance);
    m_PopupRows.add(menuItemDeleteAllSelectedInstances);
    m_PopupRows.add(menuItemInsertInstance);
  }
}

private void initPopupMenus ( ) { m_PopupHeader = new JPopupMenu ( ) ; m_PopupHeader . addMouseListener ( this ) ; m_PopupHeader . add ( menuItemMean ) ; if ( ! isReadOnly ( ) ) { m_PopupHeader . addSeparator ( ) ; m_PopupHeader . add ( menuItemSetAllValues ) ; m_PopupHeader . add ( menuItemSetMissingValues ) ; m_PopupHeader . add ( menuItemReplaceValues ) ; m_PopupHeader . addSeparator ( ) ; m_PopupHeader . add ( menuItemRenameAttribute ) ; m_PopupHeader . add ( menuItemAttributeAsClass ) ; m_PopupHeader . add ( menuItemDeleteAttribute ) ; m_PopupHeader . add ( menuItemDeleteAttributes ) ; m_PopupHeader . add ( menuItemSortInstances ) ; } m_PopupHeader . addSeparator ( ) ; m_PopupHeader . add ( menuItemOptimalColWidth ) ; m_PopupHeader . add ( menuItemOptimalColWidths ) ; m_PopupRows = new JPopupMenu ( ) ; m_PopupRows . addMouseListener ( this ) ; if ( ! isReadOnly ( ) ) { m_PopupRows . add ( menuItemUndo ) ; m_PopupRows . addSeparator ( ) ; } m_PopupRows . add ( menuItemCopy ) ; m_PopupRows . addSeparator ( ) ; m_PopupRows . add ( menuItemSearch ) ; m_PopupRows . add ( menuItemClearSearch ) ; if ( ! isReadOnly ( ) ) { m_PopupRows . addSeparator ( ) ; m_PopupRows . add ( menuItemDeleteSelectedInstance ) ; m_PopupRows . add ( menuItemDeleteAllSelectedInstances ) ; m_PopupRows . add ( menuItemInsertInstance ) ; } }
initializes the popup menus
