Hi Pribu,

Use the following code, it may solve u problem, use getKeyCode() on
KeyEvent and can catpure the which key u pressed and write some logic to
compare this with pre-known key codes .

     b1.addKeyListener(new KeyAdapter()
          {
               public void keyPressed(KeyEvent ke)
               {
                    int i=ke.getKeyCode();
                    System.out.println(i);
                    if (i==10)
                    {
                    String tuid = userId.getText().trim();

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to