Article View: borland.public.jbuilder.java.swing
Article #7683Re: JPopup Menu's isPopupTrigger()
From: John McGrath TeamB
Date: Thu, 28 Dec 2000 06:08
Date: Thu, 28 Dec 2000 06:08
26 lines
1805 bytes
1805 bytes
On Sat, 23 Dec 2000 07:08:41 -0800, Hycel wrote:
> Does any know why the even.popupTrigger always reads false
> when I right click the mouse when I am in a Linux environment?
I do not know, but if you really want to explore this, you could
download the Java source release and look at the code where the mouse
events are constructed. To get the source release, go to the Sun Java
products page (http://www.java.sun.com/products/) and select "Java 2
SDK, Standard Edition, Source Release" from the combo box.
> Does any know what I should do so that the event.popupTrigger
> becomes true when I right click the mouse on either OS platform?
The property is package private and there is no setter for it, so there
is no reasonable way you can set it. But you could trigger your popup
menu based on the button settings rather than on isPopupTrigger().
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.14b49ceef6e5befd989df0@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailReferences:
<9225eh$q6i3@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: 2000-12-27 22:06:53 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!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, 28 Dec 2000 01:08:04 -0500 Organization: Another Netscape Collabra Server User Lines: 26 Message-ID: <MPG.14b49ceef6e5befd989df0@forums.borland.com> References: <9225eh$q6i3@bornews.inprise.com> NNTP-Posting-Host: dslcv1-60.fast.net X-Newsreader: MicroPlanet Gravity v2.30