How do i represent an action listener for a button to respond depending on the number of clicks within a timeframe?
Posted on 2003-03-11
Okay, what to give you a brief picture, im trying to create a simulation of a mobile phone .
I have a button(just one for now, since the others will implement the same code), that contains the letters 1, a, b, and c. How do i get an actionListener to respond to events like a real phone. A user wants to type a message, so he has all three options on the same button, so he clicks once for 1, twice for (a), thrice for (b), and and four times for (c), all within a time limit. If the time is too long it refreshes back to the default (1).
Do you see what i mean? hopefully. So any advice as to how i do this?