Check the size of the image, it should be 16 x 16.

:)

<><><><><>


2009/4/13 Vitali Lovich <[email protected]>

> try using Firebug to determine that you're CSS properties are actually
> being used.
>
> On Mon, Apr 13, 2009 at 6:47 AM, Mark RG Itol <[email protected]> wrote:
>
>>
>> Hi guys,
>> Any ideas so far? :)
>>
>> On Apr 8, 5:04 pm, Mark RG Itol <[email protected]> wrote:
>> > Hi guys, would like to follow up on this one. Do you have any ideas?
>> > Thanks a lot. :)
>> >
>> > On Apr 2, 6:47 pm, Mark RG Itol <[email protected]> wrote:
>> >
>> >
>> >
>> > > Hi guys,
>> >
>> > > I am using GWT's Treepanel and I need to set different icons for my
>> > > TreeNodes.
>> > > I tried using TreeNode.setIconCls(String) but it doesn't seem to work.
>> > > My style names are contained in a CSS file and I am also using these
>> > > style names
>> > > in setting the icons of menu items (using setIconCls()) and they work
>> > > (the icons appear on the menu items).
>> >
>> > > Below are some code snippets:
>> >
>> > > Java:
>> > > TreeNode configNode = new TreeNode("+ New");
>> > > configNode.setUserObject(-1L);
>> > > configNode.setIconCls("new");
>> > > parentNode.appendChild(configNode);
>> >
>> > > CSS:
>> > > .new    {background-image:url(../images/payroll/new.png);}
>> >
>> > > I don't know what I'm missing here -- the codes I've seen in the GWT
>> > > demo are using the same implementation (setIconCls).
>> >
>> > > Thank you in advance. :)
>> >
>> > > Best regards,
>> > > Mark
>>
>>
>
> >
>


-- 
Carlos Salvador
Consultor BI / SAP BW BPS
021-8426-8120
011-9579-7865

--~--~---------~--~----~------------~-------~--~----~
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