nixnixnix Messages: 415 Registered: February 2007 Location: Kelowna, British Columbia
Senior Member
Hi Amit,
I'm no expert but try getting rid of the first line in your constructor. You are not using a layout and you are painting yourself so you dont need this line.
Please let me know if that works. If not I'll run your code and take a closer look.