Can some please help me here...

Regards,
Ananda

-----Original Message-----
From: Ananda Rao [mailto:ananda.hayavadh...@googlemail.com] 
Sent: Tuesday, January 27, 2009 10:51 AM
To: google-web-toolkit
Subject: Error in pushbutton

HI,

i have a code where in i have added pushbutton with images in the
background..

when i execute this i am getting the buttons propetly. but when i drag drop
the button it is giving unexpected error  and all my application closes.

but this is not happaening if i use only button without background image.

below is my code.

             final PushButton pushButton_1 = new PushButton(new Image
("save_all_32x32.png"), new Image ("save_all_32x32_1.png"));
                rootPanel.add(pushButton_1, 65, 94);
                pushButton_1.setSize("46px", "40px");

                final PushButton pushButton_2 = new PushButton(new Image
("searchtool_32x32.png"),new Image("searchtool_32x32_1.png"));
                rootPanel.add(pushButton_2, 118, 94);
                pushButton_2.setSize("40px", "40px");

                final PushButton pushButton_3 = new PushButton(new Image
("delete_32x32.png"),new Image ("delete_32x32_1.png"));
                rootPanel.add(pushButton_3, 171, 96);
                pushButton_3.setSize("40px", "36px");

                final PushButton pushButton_4 = new PushButton(new
Image("news_32x32.png"), new Image ("news_28x28_1.png"));
                rootPanel.add(pushButton_4, 224, 98);
                pushButton_4.setSize("40px", "38px");


Can any one tell me how can i get rid from tis error.

Thanks in Advance
Rao


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to