keyListener

hi all,

i want to know whether it is possible to find the time interval

between the key Released and keypressed .what i want know is

if i press a key "C" in key board and after sometime if i press"G" in key board,i want to find the timeinterval between the key"C" released and the key"G" pressed

can any one give me a sample code for this

Thank u for ur kind attention

[407 byte] By [jyothimsa] at [2007-11-26 16:41:37]
# 1
Do you really want to be spoonfed?How do you think it would be done? What ideas do you have?
zadoka at 2007-7-8 23:08:39 > top of Java-index,Java Essentials,New To Java...
# 2
long startTime = System.currentTimeMillis();//...long endTime = System.currentTimeMillis();
duckbilla at 2007-7-8 23:08:39 > top of Java-index,Java Essentials,New To Java...
# 3
U know u need KeyListener. Follow the tutorial.Ted.
ted_trippina at 2007-7-8 23:08:39 > top of Java-index,Java Essentials,New To Java...