Display Java Calendar
Display Java Calendar
181FA04034
181FA04035
181FA04038
181FA04042
TABLE OF CONTENTS
• Abstract
• Introduction
• Description
• Conclusion
• Reference
ABSTRACT
• A java calendar is used to display the particular data and time month ,year .
By using the calendar we can know all of this.
• Swing is a GUI widget toolkit for Java. It is part of Oracle’s Java Foundation
Classes (JFC) – an API for providing a graphical user interface (GUI) for Java
programs. Swing was developed to provide a more sophisticated set of GUI
components than the earlier Abstract Window Toolkit (AWT). JAVA provides
a rich set of libraries to create Graphical User Interface in platform
independent way.
INTRODUCTION
• A calendar is a tool that keeps every aspect of our life focused in one place, allowing you to
worry less and accomplish more. Using the calendar is the best way to avoid procrastination
and general tardiness.
• The Calendar applications contain the following fields and controls:
• Calendar Date Field – Provides the current date or enables a user to select a date that he/she
wants to view.
• Calendar View Options – Enables a user to choose day view, week view and year view.
• Calendar Selection – User can have multiple accounts synchronized to the device.
• Calendar Selection enables to choose the calendar account that he/she wants to view.
INTRODUCTION
Swing API is set of extensible GUI Components to ease developer’s life to create JAVA
based Front End/ GUI Applications. It is build upon top of AWT API and acts as replacement
of AWT API as it has almost every control corresponding to AWT controls. Swing
component follows a Model-View-Controller architecture to fulfill the following criteria.
•A single API is to be sufficient to support multiple look and feel.
•API is to model driven so that highest level API is not required to have the data.
•API is to use the Java Bean model so that Builder Tools and IDE can provide better services
to the developers to use it.
DESCRIPTION
• I'm currently doing a problem set where I have to create a calendar displaying all the months of a year,
including the days of the month within it. However I'm having issues with the spacing of the first line of
each month. In class we have only learned switch statements, if, else, while, do-while, for loops
• Here is what is currently displayed for one of my months : Image of output In the picture is doesn't
show my inputs, but what I wrote was 2016 for the year and 5 for the weekday that the year starts in .
Image of output of what is desired Again, a picture of what is desired. I think my problem is possibly
the equation I used which is : int first Day Each Month = (days Month + first Day Year)%7; though the
teacher gave this equation to us to use, but it seems like it doesn't work . As you can see the spaces on
the first line is all the way to the left, it should be aligned with the designated dates, in this case for
January, Jan 1st should align on Friday and Jan 2nd should align with Saturday but it is currently on
Sunday and Monday.
CONCLUSION