0% found this document useful (0 votes)
35 views

Advanced Java Practical 10

The document provides 3 programming exercises: 1) Write a program to display "Key Pressed" when a key is pressed, 2) Develop a program to implement special function and arrow keys, 3) Develop a program to accept and multiply 2 numbers when the "Multiply" button is pressed. Source code and output are not provided for the examples. An exercise is included to practice the concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Advanced Java Practical 10

The document provides 3 programming exercises: 1) Write a program to display "Key Pressed" when a key is pressed, 2) Develop a program to implement special function and arrow keys, 3) Develop a program to accept and multiply 2 numbers when the "Multiply" button is pressed. Source code and output are not provided for the examples. An exercise is included to practice the concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Program Code

Q1. Write a program to generate KeyEvent when a key is pressed and display “Key Pressed” message.
Source Code:
Output:
Q2. Develop a program which will implement special keys such as function keys and arrow keys.

Source Code:
Output:
Exercise

Q3. Develop a program to accept two numbers and display product of two numbers when user pressed “
Multiply” button

Source Code:
Output:

You might also like