How to display Calender Please help

Hello i am new to Java Programming not much experienced. Actually i wanna display a calender on screen. The basic idea is to find what day of the week the first of the month is and print blank columns for the days of the week before the month begins. Then, print the numbers from 1 to the end of the month, starting a new row after you get to the last day of each week.
Here is the out put i am expecting
C:\> java CalendarPage 6 2007 //Here in command line arguments 6
// (Month June) and year 2007 is given.
June 2007
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
C:\>java CalendarPage //if no command line arguments are provided
//the current month and year will be displayed
May 2006
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Please Tell me how can produce such ouput. Your Help is always appriciated.

this might help,
to add calendar help you need to set the following attributes for the inputfield :
type = 'DATE' showHelp = 'true'

Similar Messages

Maybe you are looking for

  • NTFS format partition problem - install Windows 8.1

    I cannot install Windows 8.1 from USB via bootcamp, on Mavericks late 2013 rMPB 15" When I get towards the end of the Windows Setup screen the Bootcamp partition is showing as not NTFS format There is no 'advanced options' to click, under the 4 parti

  • HTML page with FLASH object doesn't reload upon a redirect

    Am using:  ECC 6.0 and ABAP SAPGUI development Hi All, I'm seeing a frustrating issue that i'm hoping others have seen and resolved. Here is what i'm attempting and below that is the issue: 1)  I have created a ABAP program in which i'm using the HTM

  • Set up withholding tax

    Hi I have created an sales invoice .whenever I transfer to A/r invoice ,after putting tax code ,it opens withholding tax for editing . It pops up with the window  .So far I have defined withholding tax ,tax categories ,tax  codes . When I try to chos

  • Alarm notification comes up every day even though I deleted the alarm

    I use my iPhone 4 as an alarm clock in the morning.  I use the built-in alarm clock app instead of a nother because it seems to deal best wtih ignoring the silent switch, so I'm more likely to wake up. My schedule changed, so I disabled an alarm and

  • Variable in PLD

    Hi Dear; in journal voucher print out, how can i know the variable no of the system debit and system credit? best regards;