MemberPopupMenu(String member,boolean showLeaderOps){
  this.member=member;
  JMenuItem item=new JMenuItem("Where");
  item.addActionListener(new WhereAction());
  add(item);
  if (showLeaderOps) {
    item=new JMenuItem("Kick");
    add(item);
    item.addActionListener(new KickAction());
    item=new JMenuItem("Make Leader");
    add(item);
    item.addActionListener(new TransferLeadershipAction());
  }
}

MemberPopupMenu ( String member , boolean showLeaderOps ) { this . member = member ; JMenuItem item = new JMenuItem ( "Where" ) ; item . addActionListener ( new WhereAction ( ) ) ; add ( item ) ; if ( showLeaderOps ) { item = new JMenuItem ( "Kick" ) ; add ( item ) ; item . addActionListener ( new KickAction ( ) ) ; item = new JMenuItem ( "Make Leader" ) ; add ( item ) ; item . addActionListener ( new TransferLeadershipAction ( ) ) ; } }
create a popup menu for a group member .
