Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started