Date: Sun, 24 Aug 2008 20:54:56 +1200 From: Jonathan Chen <jonc@chen.org.nz> To: Andy Rozman <andy@triera.net> Cc: freebsd-java@freebsd.org Subject: Re: java and context menu Message-ID: <20080824085456.GA93278@osiris.chen.org.nz> In-Reply-To: <48B0D360.9050602@triera.net> References: <48B0D360.9050602@triera.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 24, 2008 at 03:20:00AM +0000, Andy Rozman wrote:
> Hi !
>
> I am using java 1.6 and have problem with context menu. I am using KDE4,
> so I am not exactly sure, if problem lies with KDE4 or with jdk1.6 (I am
> using latest patchset - 4).
>
> Could someone please verify this for me? This works fine on windows. I
> have switched my development platform and I am running into such "small"
> problems...
If you're talking about implementing MouseListener and maybe showing the
a pop-up context menu, the recommended method is to check on
MouseEvent.isPopupTrigger() for MouseListener.mouseClicked(),
mousePressed() and mouseReleased(). It's all to do between Swing
implementations differences between Windows and UNIX.
Cheers.
--
Jonathan Chen <jonc@chen.org.nz>
------------------------------------------------------------------------
"We laugh in the face of danger, we drop icecubes down the vest of fear"
- Edmond Blackadder III
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080824085456.GA93278>
