thanks Mike.It worked.
Ann.

On Nov 22, 2:27 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 22 nov, 13:57, ART <[EMAIL PROTECTED]> wrote:
>
> > The below code only can set one tooltip t o th imagae ,i have to set
> > for each case one tooltip.i hope it is clear.Any way to do this?
>
> How about the following?
>
> > AbstractPrototpeImage img;
>
> String title;
>
> > int num=Integer.parseInt(name);
>
> > if (cloType.endsWith("h"){
> > switch(num)
> > {
> > case0:
> > img =images.h_0();
>
> title = "h_0";
>
> > break;
> > case1:
> > img =images.h_1();
>
> title = "h_1";
>
> > break;
> > case2:
> > img =images.h_2();
>
> title = "h_2";
>
> > break;
>
> > case3:
> > img =images.h_3();
>
> title = "h_3";
>
> > break;
>
> > case4:
> > img =images.h_4();
>
> title = "h_4";
>
> > break;
>
> > default:
> > img=images.e_1();
>
> title = "e_1";
>
> > }
>
> > final Image imgh=img.createImage();
>
> imgh.setTitle(title);
>
>
>
> > return imgh;
>
> > }- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to