If you implemented your Persian Calendar in Swing, you will not be able to use it in SmartGWT directly. The reason is that GWT (and any other gwt-library like SmartGWT), is Java code that the GWT compiler compiles into JavaScript, which the browser then runs.
When the GWT compiler compiles Java into JavaScript, it has some rules about how it does that. For Example, it can compile if-statements, while loops, math operations, classes, so that you can effectively program the flow of your program. It also compiles math operations such as:
final double sum = 1.5 + 10.6;
To get an idea of what Java code GWT can compile into JavaScript:
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html
When it comes to UI components, GWT itself comes with a bunch of classes that can render all the usual HTML stuff. Here is their showcase:
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCheckBox
Just like GWT has a bunch of classes that can render all the usual HTML stuff, SmartGWT has a bunch of classes too, but they offer a much richer experience than GWT. Remember their showcase is here:
http://www.smartclient.com/smartgwt/showcase/#main
When it comes to libraries written in Swing, you can’t just import them into your GWT project, compile them, and use them, because nobody (as far as I know) has written the logic that compiles the Swing Java classes into JavaScript.
So good news: you already coded your calendar in Swing, so you are already used to the concept, library, model, handlers, and so on… so, re-implementing it in GWT should be “easy”.
What you need to do is to rewrite your calendar but instead of using the swing classes, use the GWT or SmartGWT classes instead (see showcase). When you do that, the GWT compiler will be able to convert it to JavaScript, and it will run in the browser.
I recommend you start with a simple GWT project and do a little prototyping to get used to it.
The showcase is the best place to see some SmartGWT code, and what it can do:
http://www.smartclient.com/smartgwt/showcase/#main