Java Assignment2 & 3
Java Assignment2 & 3
24)
1. Develop an applet to create a label, a text field and 4 check boxes with the caption
"red", "green", "blue" and "yellow".
2. . Write a program using an applet which will print "key pressed" on the status
window when you press the key, "key released" on the status window when you
release the key and when you type the characters it should print "Hello" at coordinates
(50, 50) on Applet.
3. Write a. Java Applet that sets the background color to cyan and foreground color
to red and outputs a string message "A simple Applet”.
4. Write an applet program to display the message “VTU BELGAUM”. Set the
background color to cyan and foreground color to red.
5. Create a swing application having two buttons named alpha and beta. When either
of buttons pressed, it should display “alpha pressed” and “beta pressed” respectively.
Note: All the 3 assignments should be submit before 31.5.24