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?

Reply via email to