Hi all, i want to change the colour of a label in firefox. i am
currently using the colour pallete from the gwt-ext showcase to do
this. however it can only work in ie, any ideas how to make it work in
fire fox? thanks in advance.

code snippet:
ColorPalette colorPalette = new ColorPalette();
                colorPalette.addListener(new ColorPaletteListenerAdapter() {
                        public void onSelect(ColorPalette colorPalette, String 
color) {
                                //this is for firefox

                                //this is for ie
                                System.out.println("colour selected: "+color);
                                textField.setStyle("background-color:" + color 
+ ";background-
image:none;");
                                textField.setValue(color);
                                if(l!=null){
                                        DOM.setStyleAttribute(l.getElement(), 
"background-color", color);
                                        DOM.setStyleAttribute(l.getElement(), 
"background", color);

                                }else{
                                        DOM.setStyleAttribute(abc.getElement(), 
"background", color);
                                }
                        }
                });
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to