pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Grimaud <tgrim...@gmail.com>
Subject KeyListeners on ImageView
Date Tue, 01 Mar 2011 04:03:38 GMT
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() {
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?

View raw message