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
>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
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
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
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
unsubscribe
This message sent using the FirstClass SMTP/NNTP Gateway for Mac OS.
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