public void keyPressed(KeyEvent e){
int id = e.getID();
String keyString;
if (id == KeyEvent.KEY_TYPED) {
char c = e.getKeyChar();
...
Type: Posts; User: chronoz13
public void keyPressed(KeyEvent e){
int id = e.getID();
String keyString;
if (id == KeyEvent.KEY_TYPED) {
char c = e.getKeyChar();
...
how can i code a java program that detects my keystroke?
for example i press enter,
the program will display a string message "You Press Enter" + "<Enter key>"
is it possible to make this...