🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JPopup Menu's isPopupTrigger()

#7675
From: Hycel
Date: Sat, 23 Dec 2000 15:08
34 lines
1863 bytes
Hi,

Problem:

I am running my Java application on two platforms, NT 2000 and RedHat Linux.
I have created a JPopup Menu that is supposed to popup when I right click
the mouse on any node in a JTree.  The JPopup menu pops up perfectly on my
NT, but is does not popup on my Linux.  When I run the debugger on NT, the
event.popupTrigger equals true.  When I run the debugger on Linux, the
event.popupTrigger is always false.

The code I use is the following:

class PopupTrigger extends MouseAdaptor{
  public void mouseReleased(MouseEvent event){
    if (event.isPopupTrigger()){
      ...
    }
  }
}

Questions:

Does any know why the even.popupTrigger always reads false when I right
click the mouse when I am in a Linux environment?

Does any know what I should do so that the event.popupTrigger becomes true
when I right click the mouse on either OS platform?

Thank you for your help?


Hycel
hycel@mediaone.net
Technical Details
Message-ID: <9225eh$q6i3@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!204.127.161.2.MISMATCH!wn2feed!wn3feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!news-ge.switch.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,40673252ea84e843,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2000-12-23 04:30:12 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!204.127.161.2.MISMATCH!wn2feed!wn3feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!news-ge.switch.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mail
From: "Hycel" <hycel@mediaone.net>
Newsgroups: borland.public.jbuilder.java.swing
Subject: JPopup Menu's isPopupTrigger()
Date: Sat, 23 Dec 2000 07:08:41 -0800
Organization: Another Netscape Collabra Server User
Lines: 36
Message-ID: <9225eh$q6i3@bornews.inprise.com>
NNTP-Posting-Host: h000094994dd4.ne.mediaone.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400