Stupid PopupMenu question

1998-12-01 Thread Thomas Okken
Hi all, I'm trying to make a PopupMenu appear in a Component (a subclass of Canvas, to be precise). I create the menu in my Component's constructor: mypopup = new PopupMenu(); mypopup.add("Blah"); // etc... mypopup.addActionListener(this); In my processMouseEvent method, I check for mouse clic

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

Re: Stupid PopupMenu question (retry)

1998-11-29 Thread Magnus Niemann
On Sat, 28 Nov 1998, Thomas Okken wrote: > 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 documentation for PopupMenu.show() mentions a "parent", but I can't > figure out how to > set i

Re: Stupid PopupMenu question (retry)

1998-11-28 Thread John Summerfield
On Sat, 28 Nov 1998, Thomas Okken wrote: > I'm trying to make a PopupMenu appear in a Component (a subclass of > Canvas, to be precise). > I create the menu in my Component's constructor: > > mypopup = new PopupMenu(); > mypopup.add("Blah"); > // etc... > mypopup.addActionListener(this); > > In

Re: Stupid PopupMenu question (retry)

1998-11-28 Thread Vicente Ribeiro
unsubscribe This message sent using the FirstClass SMTP/NNTP Gateway for Mac OS.

Stupid PopupMenu question (retry)

1998-11-28 Thread Thomas Okken
Hi all, [ I apologize if this message appears twice on the list. I tried to send it yesterday, but my ISP had some problem, and I sent it from the office instead, but it didn't show up on the digest, so I figure something went wrong... ] I'm trying to make a PopupMenu appear in a Component (a su