diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-03 22:08:19 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-03 22:08:19 -0400 |
commit | 6a10a65a0dbcd0540202479a02e4f91881791d6b (patch) | |
tree | 99e4b7ba9ffa94a36ef803265061b11b53dfb70e /KeyDetection.java | |
parent | 96fae9b176c670a2bae04f7f22367e15989e73b3 (diff) | |
download | NPEhero-6a10a65a0dbcd0540202479a02e4f91881791d6b.tar.gz NPEhero-6a10a65a0dbcd0540202479a02e4f91881791d6b.tar.bz2 NPEhero-6a10a65a0dbcd0540202479a02e4f91881791d6b.zip |
rearange some files
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); - - } - -} |