public abstract class KeyAdapter extends java.lang.Object implements KeyListener
KeyListener interface.
Classes that wish to deal with KeyEvents can
extend this class and override only the methods which they are
interested in.
KeyListener,
KeyEvent| Constructor and Description |
|---|
KeyAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
keyPressed(KeyEvent e)
Sent when a key is pressed on the system keyboard.
|
void |
keyReleased(KeyEvent e)
Sent when a key is released on the system keyboard.
|
public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenere - an event containing information about the key presspublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenere - an event containing information about the key release
Copyright (c) EclipseSource and others 2002, 2019.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0