To all,

I am trying to implement my first popup menu using JPopupMenu. I'm using Java 1.2 (a.k.a Java 2) with Swing components.

I know that I need to make a JPopupMenu object, that it is populated with JMenuItem objects, and that I need to implement the PopupMenuListener interface. However, I cannot get anything to work properly.

If someone out there can give me some sample code showing me how to make a simple pop-up menu, I'd appreciate it.

BTW, I am able to catch right-click mouse button presses, I'm just having difficulties making the menu appear.

Thanks!!

- Valerie
Software Engineer
Intel Corporation

* All opinions are mine and not those of my employer.