private void renameButton()
  {
    JMenuItem renameItem = new JMenuItem("Rename");
    renameItem.addActionListener(new ActionListener()
    {
      @Override
      public void actionPerformed(ActionEvent evt)
      {
        table.editCellAt(table.getSelectedRow(), 0);
        if (table.getEditorComponent() != null)
          table.getEditorComponent().requestFocus();
      }
    });
    add(renameItem);
  }