void addPopupItem(String s) { MenuItem mi = new MenuItem(s); mi.addActionListener(this); pm.add(mi); }