🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JPopup Menu's isPopupTrigger()

#7705
From: John McGrath TeamB
Date: Thu, 04 Jan 2001 11:36
25 lines
1618 bytes
On Wed, 3 Jan 2001 11:05:04 +0100, Johan Forsberg wrote:

> Just a guess: perhaps Linux triggers the popup when the
> mouse button is pressed? Try adding a mousePressed() to
> your MouseListener.

Ooops.  I didn't notice that he was only testing in mouseReleased().  
Good catch!

I am pretty sure that the popup trigger under Linux happens in the 
mousePressed event, since X11 popups tend to be of the press & drag 
type.

In any case, you should always check for popupTrigger in both the 
mousePressed and mouseReleased events, since this varies from platform 
to platform.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.14be293496a74cf6989e37@forums.borland.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.cs.utwente.nl!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail
References: <9225eh$q6i3@bornews.inprise.com> <92usqg$ch911@bornews.inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,40673252ea84e843
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-04 03:44:18 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.cs.utwente.nl!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: JPopup Menu's isPopupTrigger()
Date: Thu, 4 Jan 2001 06:36:16 -0500
Organization: Another Netscape Collabra Server User
Lines: 25
Message-ID: <MPG.14be293496a74cf6989e37@forums.borland.com>
References: <9225eh$q6i3@bornews.inprise.com> <92usqg$ch911@bornews.inprise.com>
NNTP-Posting-Host: dslcv1-60.fast.net
X-Newsreader: MicroPlanet Gravity v2.30