Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 28127 invoked from network); 1 Mar 2011 04:04:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Mar 2011 04:04:10 -0000 Received: (qmail 28710 invoked by uid 500); 1 Mar 2011 04:04:10 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 28516 invoked by uid 500); 1 Mar 2011 04:04:07 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 28508 invoked by uid 99); 1 Mar 2011 04:04:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 04:04:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tgrimaud@gmail.com designates 209.85.161.54 as permitted sender) Received: from [209.85.161.54] (HELO mail-fx0-f54.google.com) (209.85.161.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 04:03:58 +0000 Received: by fxm19 with SMTP id 19so4990970fxm.13 for ; Mon, 28 Feb 2011 20:03:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=17px8FCwnFIn/WS6frjMCKw5JGtzkA39+O2y/Q9Y/XQ=; b=MWsMNwdFVg4Mg035W8rqmeNpRBDazJutzWMc/zjhu6sIL9iaaHSpDroThDIYXZq+Vg dM20I4eBmE5w4TCnMvUDIZ3ABq1Y+caZbDJdUXnxpQbSe00SjgM0/Hl/sXn6CBX3px8q MdXDD4VBO8RYxsiyohRf2kAK2f7GEa0TG3PSU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XY8sJLnWy46LHpuFZDrndPGQfL1h7JY7UEgGvDcsg4oJFdy4GqPYd/APsUZYH6wJEG W7O3+7qrHKNxUHsluhFhQWRIxVZE+tVMkkQNgHRBSOhKNDZTgN8vxIkIkZ5AzgIghmOL INfW2ea3lxBJc1Kai4uge9VAv6J8l0gAX186Y= MIME-Version: 1.0 Received: by 10.223.61.133 with SMTP id t5mr7478036fah.103.1298952218074; Mon, 28 Feb 2011 20:03:38 -0800 (PST) Received: by 10.223.73.204 with HTTP; Mon, 28 Feb 2011 20:03:38 -0800 (PST) Date: Tue, 1 Mar 2011 15:03:38 +1100 Message-ID: Subject: KeyListeners on ImageView From: Thomas Grimaud To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=0015173feeee89e0c3049d63e195 X-Virus-Checked: Checked by ClamAV on apache.org --0015173feeee89e0c3049d63e195 Content-Type: text/plain; charset=ISO-8859-1 I'm trying to add a ComponentKeyListener on an ImageView component , in order to catch the DEL button. It doesn't work, I did exactly the same thing on a TextArea and everything worked fine. image.getComponentKeyListeners().add(new ComponentKeyListener.Adapter() { @Override public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) { ..... return true; } }); How can I make it work on an ImageView, or even a Border, as I have the same pb on a Border? --0015173feeee89e0c3049d63e195 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I'm trying to add a ComponentKeyListener on an Imag= eView component , in order to catch the DEL button.

It doesn't work, I did exactly the same thing on a TextArea and every= thing worked fine.

image.getComponentKeyListeners().add(new Component= KeyListener.Adapter() {
@Override
public boolean keyPressed(Component com= ponent, int keyCode, Keyboard.KeyLocation keyLocation) {
...= ..
return true;
}
});

How can I make it work on an ImageV= iew, or even a Border, as I have the same pb on a Border?



--0015173feeee89e0c3049d63e195--