Keypressed issue

I want to display the texts which are enterred in a text box, but if i enter "r" in the text box its not displaying instantly, i will display the "r" only while entering the next character

publicvoid keyPressed(java.awt.event.KeyEvent e){

//

ba = jTextField.getText();

System.out.println("From the text >"+ba);

Any one can help me out

[523 byte] By [rayees1234a] at [2007-11-27 11:11:09]
# 1

use keyReleased() method.

swing related question should be posted in the swing forum.

null

Yannixa at 2007-7-29 13:46:19 > top of Java-index,Java Essentials,Java Programming...