Question: 10. Write a Java program to create a JApplet with three JButtons, Morning, Afternoon and Evening. When we click Morning button, the message Good

 10. Write a Java program to create a JApplet with three JButtons,  

10. Write a Java program to create a JApplet with three JButtons, Morning, Afternoon and Evening. When we click Morning button, the message "Good Morning to you" must appear. Similar for the other two buttons "Good Afternoon to you" and "Good evening to you" must appear. Each message must appear in a different Background, text, Colour and Font. Write a program to demonstrate use of Grid Layout. On a frame with grid layout place buttons labelled respectively with the letters from 'A to Z. For example if you click the button labelled Z the message "You have clicked the Z "button should appear. (Set suitable number of rows and columns) (US115392 S04 AC1, 2) (US115363 S03 AC 3) 11. Write a Java program that displays the reverse of a given number. 12. Write a program that calculates the length (i.e. number of characters) in the input string. (US115392 SO2 AC1,2) 13. Write a Java program to create a JFrame that displays a letter 'A' and which responds to the mouse click. For each mouse click it increases the size of the letter. (US115363 S03 AC12) 14. Create a class Date Printer with a method to print today's date. Use this method from class Util, first by creating an instance of class Date Printer and next by using an anonymous class that extends class Date Printer. Override the printDate() method in the anonymous class. (US115363 S03 AC1,2) 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!