Swing GUI hangs on Mac OS

Hi All,

I have created a simple swing application, that has 3 textfields, and 2 buttons. When I try to run the code, following error comes and GUI hangs.

2011-01-21 22:32:39.905 java[7911:a07] [Java CocoaComponent compatibility mode]: Enabled
2011-01-21 22:32:39.908 java[7911:a07] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
2011-01-21 22:32:40.589 java[7911:a07] *** __NSAutoreleaseNoPool(): Object 0x123de0 of class __NSCFDate autoreleased with no pool in place - just leaking
2011-01-21 22:32:40.590 java[7911:a07] *** __NSAutoreleaseNoPool(): Object 0x155de0 of class NSCFTimer autoreleased with no pool in place - just leaking

I have googled through above error message and got to know that if I provide"-XstartOnFirstThread" as a VM argument then everything will work fine. But noting is fruitful in my case.

Please help me out since its too urgent.

Regards,
max