Practical Assignment - 3
B.C.A./B.Sc.I.T.
Semester – 3
Object Oriented Programming with Java
23UGCA301/23UGCS301
Unit – 4 and Unit - 5
Applets and Event Handling
1) Create an applet to obtain a figure as given below
2) Write an applet that generates the following output on the screen. Applet is square in
area.
Circle Square
Oval
3) Create following applet.
4) Create following applet. When user click on “Compute” button, factorial should be
displayed.
5) Create following applet.
6) Create an Applet having three Radio Buttons like Red, Green, Blue and one Label.
When the Click on one of the radio button the caption is been displayed on the Label
and likewise for other buttons.
7) Create an applet having three radio button Rectangle, Oval, and Line whenever user
click on the Rectangle radio button the rectangle is been drawn into the applet and
likewise for other buttons.
8) Create an applet having three Buttons : Red, Green, Blue
When user click on the Red button the background color of applet has been set as red
color and likewise for other buttons.
9) Create following applet.
10) Create following applet.
11) Create an applet as given below.When user click on fill Button fill the Rectangle with
given RGB values.
12) Create an Applet having two list box and four Button. When Button is pressed
operation is been made as given direction of button into one list box to another list
box.
Extra for more practice (Optional)
1) Create following applet to generate following figure.
2) Create following applet.
3) Create following applet.