10. Write a Java program to create a JApplet with three JButtons, Morning, Afternoon and Evening....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
re Regular Languages and Finite Automata (a) Let L be the set of all strings over the alphabet {a, b} that end in a and do not contain the substring bb. Describe a deterministic finite automaton...
-
Burke Fabricators completed two jobs in June. Burke Fabricators recorded the following costs assigned to the jobs by the companys activity-based costing system: Job 622 required 2,400 parts, 77,500...
-
The current price of a stock is $50, and the annual risk-free rate is 6%. A call option with a strike price of $53 and 2 years until expiration has a current value of $8.67. What is the value of a...
-
On June 30, 2011, Mendenhal plc issued 8% bonds with a par value of 600,000 due in 20 years. They were issued at 82.8414 to yield 10% and were callable at 104 at any date after June 30, 2019. Because...
-
Why are fungi essential to the growth and survival of most plants?
-
Elana's Traveling Veterinary Services, Inc., completed its first year of operations on December 31. All of the year's entries have been recorded except for the following: a. On March 1 of the current...
-
The late 1990s saw a huge number of initial offerings of common stock by Internet start-up companies. How might the lemons model be applied to these initial offerings? Did subsequent events bear out...
-
Johnson Company uses the allowance method to account for uncollectible accounts receivable. After recording the estimate of uncollectible accounts expense for the current year, Johnson decided to...
-
discuss the concept of epigenetic inheritance and provide examples of how DNA methylation, histone modifications, and non-coding RNAs influence gene expression patterns across generations?
-
You work in the pathology laboratory of a large metropolitan hospital and have been asked to assist with the screening of a biopsy sample from a patient s cancerous tumor. You discover a mutation in...
-
What forms of organizations will enable the owners of hudson signs?
-
Can someone help me to better understand the differences between civil and criminal law can you prepare a list of the differences using two columns, one labeled Civil Law and one labeled Criminal...
-
You recently purchased a stock that is expected to earn 12.6 percent in a booming economy, 8.9 percent in a normal economy and lose 5.2 percent in a recessionary economy. Each economic state is...
-
In our current security paradigm the most common form of device and data protection remains the password. Although not the most ideal or convenient way to do things, we rely on password for most of...
-
Draw the appropriate control flow graph of the given pseudocode.Make sure to only use one number for blocks of code which are all sequential and when the first line is executed, all of those lines...
-
Reconsider Problem 18. Management has decided that the $5 million raised through stock should be split between common stock and preferred stock. Common stock will be used to raise $3,000,000 and...
-
Repeat Problem 23 assuming that the stock price is growing at 3 percent per year. Data from problem 23 Lahoma Enterprises, Inc., needs $15 million to finance a major product development. The project...
-
Repeat Problem 23 assuming the stock offering will be preferred stock rather than common stock. The preferred stock will sell for $120/share, pay a $9 annual dividend, and have a cost of selling of...
Study smarter with the SolutionInn App