Hello kairamr,

Welcome to the Java Programming Forums.

It would be an advantage to post the code that you are using. This way our members can look it over to try to diagnose any problems.
...