We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I am working on a project in which nine keys are in play. Each of the keys are connected to a specific sound, which is played when the key is pressed (using minim). But if I want the sketch to be able to track the previously pressed keys to identify if a specific code/password is pressed (keys pressed and released individually but in a specific order), how do I write this?
Answers
Put them in an array or arraylist or even a string.
(Disclaimer: do not actually use this for passwords)
JPasswordField + JOptionPane approach: *-:)