| |
|
| java.lang.Object java.awt.event.KeyAdapter org.swingml.event.ReturnKeyAdapter
ReturnKeyAdapter | final public class ReturnKeyAdapter extends KeyAdapter (Code) | | A key adapter used to capture the return (enter) key press and
issue a JButton.doClick() using the name of the
button supplied at construction of this adapter.
author: Bobby Walters |
Constructor Summary | |
public | ReturnKeyAdapter(String buttonName) Creates a key adapter that will use the supplied button name. |
Method Summary | |
public void | keyPressed(KeyEvent ke) Checks the key event for the return (enter) key press and issues
a JButton.doClick() . |
ReturnKeyAdapter | public ReturnKeyAdapter(String buttonName)(Code) | | Creates a key adapter that will use the supplied button name.
Parameters: buttonName - Button name |
keyPressed | public void keyPressed(KeyEvent ke)(Code) | | Checks the key event for the return (enter) key press and issues
a JButton.doClick() .
Parameters: ke - The key event that was triggered |
|
|
|