Re: Stupid PopupMenu question -- solved

1998-11-30 Thread Gregg G. Wonderly
>Some people suggested adding the popup to the component itself -- >haven't tried that, >I already had the above code working by the time I received those >replies, and according >to the Java Tutorial, PopupMenus can be used in any Window (doesn't say >anywhing about >other Containers, let alone

Re: Stupid PopupMenu question -- solved

1998-11-30 Thread Thomas Okken
Hi all, I wrote: > mypopup = new PopupMenu(); > mypopup.add("Blah"); > // etc... > mypopup.addActionListener(this); > > In my processMouseEvent method, I check for mouse clicks in a certain > place, and then I try to pop up the menu by saying > > mypopup.show(this, X, Y); > > The result is th