Professional Documents
Culture Documents
Practical No. 10: Write A Program To Demonstrate Status of Key On Applet Window Such As Keypressed, Keyreleased, Keyup, Keydown
Practical No. 10: Write A Program To Demonstrate Status of Key On Applet Window Such As Keypressed, Keyreleased, Keyup, Keydown
I. Practical Significance:
A KeyEvent is generated when keyboard input occurs. When key is pressed, released
or typed, key event is generated. Students will be able to understand the method to
register an object and handle various key of Keyboards.
When key is pressed or released, first two events are generated. When character is
pressed, the last event occurs. All Keys do not generate character. E.g. Shift Key
The class which processes the KeyEvent should implement KeyListener interface.
The object of that class must be registered with a component. The object can be
registered using the addKeyListener () method.
Nil
Sr.
Name of Resource Broad Specification Quantity Remarks (If any)
No.
1