🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1360

Re: JPopupMenu and Applets

#1360
From: Tad Frysinger [TeamB]
Date: Tue, 20 Jan 2004 04:32
18 lines
1684 bytes
Lans Redmond wrote:

> I have an applet that I need to know add a popup menu, I have added the following code to the MouseRelease Event
> 
> if ( menu.isPopupTrigger(e))
>   System.out.println("MouseEvent Triggered");
>   int x = x.getX();
>   int y = y.getY();
>   menu.show(e.getComponent(),x,y);
> 
> 
> when I check the java console , I see that the even is being fired because I see the printout I did.  My problem is when the event is fired I do not see the popup menu.
> 
Does the menu actually have JMenuItems in it? Did you actually mean to 
post e.getX() and e.getY()? If not, do the values in x and y make sense?

-- 
Tad Frysinger [TeamB]
Technical Details
Message-ID: <400caf96$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <400883c2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7fc519a21df100d3
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-01-19 20:40:05 PST
Date: Mon, 19 Jan 2004 21:32:00 -0700
From: "Tad Frysinger [TeamB]" <tfrysinger@earthlink.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: JPopupMenu and Applets
References: <400883c2$1@newsgroups.borland.com>
In-Reply-To: <400883c2$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.165.213.196
Message-ID: <400caf96$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074573206 67.165.213.196 (19 Jan 2004 20:33:26 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail