Hi,

FlexTablePanel lFTabPanel = new FlextTablePanel();
DialogBox lAddModuleDialogBox = new DialogBox();
Image  m_Image = new Image("path of image");  i.e image/cancel.jpg

lFTabPanel .setWidget(0,1,m_Image);

lAddModuleDialogBox.add(lFTabPanel );

.................................

     m_image.addClickListener(new ClickListener() {
                            public void onClick(Widget arg0) {
                                lAddModuleDialogBox.hide();
                            }
                        });



Thanks,
Malli.



On Sat, Mar 6, 2010 at 9:37 AM, dhoffer <[email protected]> wrote:

> I should have mentioned that I need this for GWT 2.0, not sure if
> that's any different.
>
> (I notice this question posted on the web various places but most/all
> have user comments saying it didn't work, etc.  Hopefully someone has
> some code known to work with gwt 2.0.)
>
> Thanks!
>
> On Mar 6, 7:10 am, dhoffer <[email protected]> wrote:
> > Could someone send me a code example of how to add a close icon/button
> > to the GWT dialog box?  Or if there is a open source library that does
> > this that would be fine too.
> >
> > Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

Reply via email to