diff options
Diffstat (limited to 'KeyDetection.java')
-rw-r--r-- | KeyDetection.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/KeyDetection.java b/KeyDetection.java deleted file mode 100644 index 98f96e4..0000000 --- a/KeyDetection.java +++ /dev/null @@ -1,28 +0,0 @@ -/*Name: - *Date: - *Period: - *Teacher: - *Description: - */ -package cs; - -import javax.swing.*; -import java.awt.event.ActionEvent; - -public class KeyDetection extends AbstractAction -{ - long timeStart = System.currentTimeMillis(); - private char key; - public KeyDetection(char ch){ - key = ch; - } - - public void actionPerformed(ActionEvent e) - { - // TODO Auto-generated method stub - int time = (int)((System.currentTimeMillis()-timeStart)); - System.out.println(key + ": " + time); - - } - -} |