Popup menu

Discussion created by dandaley on Oct 18, 2006
Latest reply on Oct 18, 2006 by dandaley

Ok, I added a popup menu item to the ContactList by implementing a Action and calling the addContextMenuListener on the ContactList.  My menu item shows up in the popup menu and when I select it, it calls my actionPerformed method... which receives an ActionEvent object.


How do I find out which ContactItem was right clicked on from the event object?  I thought I could use the getSource() of the event, but that returns an object of javax.swing.JPopupMenu$1.


The sample in the developer''s guide doesn''t seem to address this.