🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Popup on JTableHeader

#12975
From: william.a.rawlings
Date: Wed, 14 Oct 1998 00:00
25 lines
1394 bytes
i had problems with ev.isPopupTrigger() long before Swing.  i get around it by
using:

if(ev.getModifiers() == InputEvent.BUTTON3_MASK)

and that always works.

bill

In article <6vvqlq$gvn1@forums.borland.com>,
  "Anne JANSSENS" <recherche@generix.fr> wrote:
> Hello,
> Is there anyone who have tried to show a popup on a JTableHeader ???
> I have defined a mouse listener on my JTableHeader, I can catch all the
> events
> (mousePressed, mouseReleased...) but the test evt.isPopupTrigger() is always
> false !
> Can anyone help me ?
> Thanks for any suggestions that could help me !
> Anne
>
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <702n09$m9e$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6vvqlq$gvn1@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a73ba21d6996df86
X-Google-Attributes: gid111d45,public
From: william.a.rawlings@lmco.com
Subject: Re: Popup on JTableHeader
Date: 1998/10/14
Message-ID: <702n09$m9e$1@nnrp1.dejanews.com>
X-Deja-AN: 401031896
References: <6vvqlq$gvn1@forums.borland.com>
X-Http-Proxy: 1.0 x13.dejanews.com:80 (Squid/1.1.22) for client 192.91.146.35
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Wed Oct 14 17:28:39 1998 GMT
Newsgroups: borland.public.jbuilder.java.swing
X-Http-User-Agent: Mozilla/4.03 [en] (Win95; U ;Nav)