Look I have done a calendar in SWT It is simple.
Logical Details .
Use the java Calendar Object.
Graphical Details.
I have 49 labels which are arranged in the grid layout 7x7.
important methods
createLabels();//draw labels
assignLabels();//Assign text to the date based on the month.
Use calendar roll method for the date and month change.
That is it

What's this code. Seems to me mixture with Java any something else ;) From the class definition there are lots of errors I can see. Please check such codes before adding to the forum. Lots of errors I can pointed without testing this code pal.

the code is correct, yes, you Eranga, you should learn a little more than Java and then yes criticize any code.

excuse anything!

Here comes another mad guy.:mad:

I challenge you, this is not a valid Java code. Can you take my challenge? Don't be a fool man, in your class there are hundreds of errors, which are not valid in Java. I'm not talking about any other language, because this is a Java forum too.

Hi sukatoa, I'm cool all the time. But read his post, if he doesn't know things exactly better to wait and listen to others. As I said I can show around 20 errors in that code. In that sense he said to me, learn Java.

do you know any tool to do a nice calendar?
I am trying to do a calendar with code and... it is so hard.

the best calendar you can get is the one from Nebula project(eclipse.org/nebula/widgets/calendarcombo/calendarcombo.php)
See this link and you will see other very interesting stuff about calendars and dates!!!