From owner-freebsd-java@FreeBSD.ORG Sun Aug 24 09:13:07 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2B721065671 for ; Sun, 24 Aug 2008 09:13:07 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (ip-58-28-152-174.static-xdsl.xnet.co.nz [58.28.152.174]) by mx1.freebsd.org (Postfix) with ESMTP id 42ADD8FC15 for ; Sun, 24 Aug 2008 09:13:07 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id C58B828411; Sun, 24 Aug 2008 20:54:56 +1200 (NZST) Date: Sun, 24 Aug 2008 20:54:56 +1200 From: Jonathan Chen To: Andy Rozman Message-ID: <20080824085456.GA93278@osiris.chen.org.nz> References: <48B0D360.9050602@triera.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48B0D360.9050602@triera.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-java@freebsd.org Subject: Re: java and context menu X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2008 09:13:07 -0000 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 ------------------------------------------------------------------------ "We laugh in the face of danger, we drop icecubes down the vest of fear" - Edmond Blackadder III