Write a Java applet/application Calendar.java to display a calendar for any year
ID: 3822289 • Letter: W
Question
Write a Java applet/application Calendar.java to display a calendar for any year. The user inputs the year into a TextField and chooses the month from a Choice object (drop-down combo box), then clicks ‘New Calendar' to show the calendar for that month and year. Call applet from an HTML file with this tag:
<object code ="Calendar.class" width=421 height=481></object>
The applet assumes a 421x481 pixel surface on which to draw. You’re required to use 3 or more methods in your program for full credit. You can write a program to hold all the methods and another program to call the methods. There should be graphics around your calendar.
Explanation / Answer
Answer