[ug-bosug] Input actions
S h i v
shivakumar.gn at gmail.com
Fri Jul 13 00:23:29 PDT 2007
Hi Renuka,
Since it is a java related query, you are likely to get better
responses in a java related forum.
On 7/12/07, renuka prasad <nrp.prasad at gmail.com> wrote:
> hello,
> As per the login screen , i hav 2 enter only password , as username s
> default,
>
> private void jbLoginKeyPressed(java.awt.event.KeyEvent evt) {
>
> loginVerify();
> }
>
> The above code is workin wen i click on my "login" command button.
>
> but the button responds 2 all the keys present in the keyboard.
> The command button should respond only to ctrl+l and enter .
>
> how will i do it?
>
java.awt.event.KeyEvent evt => for all keyboard events.
The below links should help you in identifying the keys and writing
suitable handling code
http://java.sun.com/j2se/1.3/docs/api/java/awt/event/KeyEvent.html
http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html
regards
Shiv
More information about the ug-bosug
mailing list