Ty Bsc IT Question Bank Sem V
Advanced Java
Unit 1- AWT and Event Handling
1.)
Explain the terms: a.)Events b.) Listeners c.) Source
2.)
How is event handling done in java?
3.)
Write a short note on delegation event model.
4.)
What are adapter classes in java? Explain with an
example.
5.)
Explain with an example how inner classes simplifies
adapter classes.
6.)
Explain how anonymous inner classes are used for event
handling.
7.)
What is the default layout of the frame? Explain the
same.
8.)
Explain following classes with an example:
a.)
ActionEvent
b.)
ItemEvent
c.)
AdjustmentEvent
d.)
MouseEvent
e.)
KeyEvent
f.)
ComponentEvent
g.)
ContainerEvent
h.)
FocusEvent
i.)
TextEvent
j.)
WindowEvent
k.)
MouseWheelEvent
l.)
InputEvent
9.)
Explain the Event Listener Interfaces.
10.)
How does AWT create radio buttons? Explain with syntax
and code specification.
11.)
Explain the following Layout Managers with an example.
a.)
FlowLayout b.)GridLayout c.)BorderLayout
d.)GridBagLayout e.)CardLayout
12.)
Write a program to generate GUI with two textboxes for
first name and last name, one radio button group for gender and one checkbox
group for hobbies and display the appropriate selection in label.
13.)
Write a program using AWT to generate two textboxes for
username and password, two buttons for login and cancel.
No comments:
Post a Comment